Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

How to detect if a Joystick is a Gamepad?

$
0
0

@6thVenom wrote:

Hi there,

I got few generic pads that are not referenced by MG 3.6.0.1625 as GamePads but are present as Joysticks, so i used Joystick classe for my project, but then i realised that JoystickState.Hats return wrong values for my Xbox360 wired pad! :confused:

So i'd like to be able to use GamePad class for every pad recognized, and Joystick class for others, but to do so, i need to be able to compare Guids or Ids, and it looks like they're not exposed.

Any suggestion?

Thanks.

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles