- Messages
- 120
- Country
I would like to press a joystick button and have my app detect that event so it can then act accordingly. How do I set up my code to detect when I've pressed one of my joystick buttons?
Thanks...
Thanks...
Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.
By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.
enum NOTIFICATION_GROUPS
{
GROUP0,
}
enum INPUT_GROUPS
{
INPUT0,
}
simconnect.AddClientEventToNotificationGroup(INPUT_GROUPS.INPUT0, EVENTS.CAMERA_RESET, false);
// Map the keys , and . keys to the private events
simconnect.MapInputEventToClientEvent(INPUT_GROUPS.INPUT0, "joystick:0:button:0", EVENTS.CAMERA_RESET, (uint)0, (EVENTS)unused, (uint)0, (bool)false);
simconnect.SetInputGroupState(INPUT_GROUPS.INPUT0, (uint)SIMCONNECT_STATE.ON);
case (uint)EVENTS.CAMERA_RESET:
resetview();
break;