Original Post
Greetings! In my game application I use several methods to gather input: a) WM_KEYDOWN, WM_KEYUP for Keyboard messages b) WM_MOUSEMOVE, WM_MOUSELBUTTON... for Mouse Messages c) WM_INPUT for high precision Mouse Messages d) OnUpdate() where XInput and all joysticks get updated I do not want to use Direct Input only, because I still need a way to access XInput. And on the other hand it is possible to enumerate XBOX controller like DirectInputDevice8 object, but you loose force feedback support. I know, that action mapping is supported with directx, but I would like something easier to set up and easier to configure. Is there something like an enumerator list for KEYBOARD_A, KEYBOARD_LEFT, MOUSE_X-, MOUSE_Y-, JOYSTICK_AXIS_UP ? For example a method like this: DWORD WaitForAnyInput() if (any keyboard down) then return KEYBOARD_PageDown for example if (mouse movement) then return MOUSE_LEFT... if (joystick axis up) return Joystick_UP etc... I do not want to reinvent the wheel with all possible enumerators. And then when all set up, how do you apply acttions? Mapping.Add(KEYBOARD_UP, FROWARD_PLAYER1); Mapping.Add(KEYBOARD_DOWN, BACKWARD_PLAYER1); Mapping.Add(JOY_AXIS_UP, FROWARD_PLAYER2); Mapping.Add(JOY_AXIS_DOWN, BACKWARD_PLAYER2); Thankyou in advance!