So I get the list of devices via g_controller_interface.Devices(), but every object in the list is a ciface::Core::Device. However, in the Device class, there is no ability to check if said device is a joystick/joypad. I can't check if the class is something like the "Joystick" class because that specific class requires the SDL backend to be used. So my question is: Is there a "good" cross platform way I should check if a given device is a joystick or joypad? Thanks.
A question about g_controller_interface
|
07-06-2016, 10:21 AM
If you rebased to the lastest version of the dolphin, we actually added a InputConfig::IsControllerControlledByGamepadDevice() Function to solve a problem along this same lines.
It probably won't fit your exact needs but maybe you can adopt the approach, or think of something better. |
« Next Oldest | Next Newest »
|
Users browsing this thread: 1 Guest(s)