Motion Controls for pc linked to phone

I’m working on a Wii remake app in GDevelop, with some simple games so it looks like a real wii. Is it possible for a mode where the user can connect their phone and use it’s motion controls to control the game running on pc? Or maybe use joycons in gdevelop?