• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 28 29 30 31 32 ... 117 Next »

A question about g_controller_interface
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
A question about g_controller_interface
07-06-2016, 04:08 AM
#1
DesiOtaku Offline
Junior Member
**
Posts: 12
Threads: 4
Joined: Jun 2015
Question 
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.
Find
Reply
07-06-2016, 10:21 AM
#2
phire Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 31
Threads: 0
Joined: Jan 2014
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.
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode