| 19686 | |
| 19687 | #ifdef VIGEM_CLIENT_SUPPORT |
| 19688 | void QKeyMapper_Worker::initViGEmKeyMap() |
| 19689 | { |
| 19690 | #if 0 |
| 19691 | /* Virtual Joystick Buttons */ |
| 19692 | JoyStickKeyMap.insert(VJOY_MOUSE2LS_STR , (int)JOYSTICK_LS_MOUSE ); |
| 19693 | JoyStickKeyMap.insert(VJOY_MOUSE2RS_STR , (int)JOYSTICK_RS_MOUSE ); |
| 19694 | |
| 19695 | JoyStickKeyMap.insert("vJoy-Key1(A/×)" , (int)JOYSTICK_BUTTON_0 ); |
| 19696 | JoyStickKeyMap.insert("vJoy-Key2(B/○)" , (int)JOYSTICK_BUTTON_1 ); |
| 19697 | JoyStickKeyMap.insert("vJoy-Key3(X/□)" , (int)JOYSTICK_BUTTON_2 ); |
| 19698 | JoyStickKeyMap.insert("vJoy-Key4(Y/△)" , (int)JOYSTICK_BUTTON_3 ); |
| 19699 | JoyStickKeyMap.insert("vJoy-Key5(LB)" , (int)JOYSTICK_BUTTON_4 ); |
| 19700 | JoyStickKeyMap.insert("vJoy-Key6(RB)" , (int)JOYSTICK_BUTTON_5 ); |
| 19701 | JoyStickKeyMap.insert("vJoy-Key7(Back)" , (int)JOYSTICK_BUTTON_6 ); |
| 19702 | JoyStickKeyMap.insert("vJoy-Key8(Start)" , (int)JOYSTICK_BUTTON_7 ); |
| 19703 | JoyStickKeyMap.insert("vJoy-Key9(LS-Click)" , (int)JOYSTICK_BUTTON_8 ); |
| 19704 | JoyStickKeyMap.insert("vJoy-Key10(RS-Click)" , (int)JOYSTICK_BUTTON_9 ); |
| 19705 | JoyStickKeyMap.insert("vJoy-Key13(Guide)" , (int)JOYSTICK_BUTTON_10 ); |
| 19706 | JoyStickKeyMap.insert("vJoy-Key11(LT)" , (int)JOYSTICK_LEFT_TRIGGER ); |
| 19707 | JoyStickKeyMap.insert("vJoy-Key12(RT)" , (int)JOYSTICK_RIGHT_TRIGGER ); |
| 19708 | /* Virtual Joystick Special Buttons for ForzaHorizon */ |
| 19709 | JoyStickKeyMap.insert(VJOY_LT_BRAKE_STR , (int)JOYSTICK_LEFT_TRIGGER ); |
| 19710 | JoyStickKeyMap.insert(VJOY_LT_ACCEL_STR , (int)JOYSTICK_LEFT_TRIGGER ); |
| 19711 | JoyStickKeyMap.insert(VJOY_RT_BRAKE_STR , (int)JOYSTICK_RIGHT_TRIGGER ); |
| 19712 | JoyStickKeyMap.insert(VJOY_RT_ACCEL_STR , (int)JOYSTICK_RIGHT_TRIGGER ); |
| 19713 | |
| 19714 | /* Virtual Joystick DPad Direction */ |
| 19715 | JoyStickKeyMap.insert("vJoy-DPad-Up" , (int)JOYSTICK_DPAD_UP ); |
| 19716 | JoyStickKeyMap.insert("vJoy-DPad-Down" , (int)JOYSTICK_DPAD_DOWN ); |
| 19717 | JoyStickKeyMap.insert("vJoy-DPad-Left" , (int)JOYSTICK_DPAD_LEFT ); |
| 19718 | JoyStickKeyMap.insert("vJoy-DPad-Right" , (int)JOYSTICK_DPAD_RIGHT ); |
| 19719 | /* Virtual Joystick Left-Stick Direction */ |
| 19720 | JoyStickKeyMap.insert("vJoy-LS-Up" , (int)JOYSTICK_LS_UP ); |
| 19721 | JoyStickKeyMap.insert("vJoy-LS-Down" , (int)JOYSTICK_LS_DOWN ); |
| 19722 | JoyStickKeyMap.insert("vJoy-LS-Left" , (int)JOYSTICK_LS_LEFT ); |
| 19723 | JoyStickKeyMap.insert("vJoy-LS-Right" , (int)JOYSTICK_LS_RIGHT ); |
| 19724 | /* Virtual Joystick Right-Stick Direction */ |
| 19725 | JoyStickKeyMap.insert("vJoy-RS-Up" , (int)JOYSTICK_RS_UP ); |
| 19726 | JoyStickKeyMap.insert("vJoy-RS-Down" , (int)JOYSTICK_RS_DOWN ); |
| 19727 | JoyStickKeyMap.insert("vJoy-RS-Left" , (int)JOYSTICK_RS_LEFT ); |
| 19728 | JoyStickKeyMap.insert("vJoy-RS-Right" , (int)JOYSTICK_RS_RIGHT ); |
| 19729 | #endif |
| 19730 | |
| 19731 | /* ViGEm Virtual Joystick Buttons */ |
| 19732 | ViGEmButtonMap.insert("vJoy-Key1(A/×)" , XUSB_GAMEPAD_A ); |
| 19733 | ViGEmButtonMap.insert("vJoy-Key2(B/○)" , XUSB_GAMEPAD_B ); |
| 19734 | ViGEmButtonMap.insert("vJoy-Key3(X/□)" , XUSB_GAMEPAD_X ); |
| 19735 | ViGEmButtonMap.insert("vJoy-Key4(Y/△)" , XUSB_GAMEPAD_Y ); |
| 19736 | ViGEmButtonMap.insert("vJoy-Key5(LB)" , XUSB_GAMEPAD_LEFT_SHOULDER ); |
| 19737 | ViGEmButtonMap.insert("vJoy-Key6(RB)" , XUSB_GAMEPAD_RIGHT_SHOULDER ); |
| 19738 | ViGEmButtonMap.insert("vJoy-Key7(Back)" , XUSB_GAMEPAD_BACK ); |
| 19739 | ViGEmButtonMap.insert("vJoy-Key8(Start)" , XUSB_GAMEPAD_START ); |
| 19740 | ViGEmButtonMap.insert("vJoy-Key9(LS-Click)" , XUSB_GAMEPAD_LEFT_THUMB ); |
| 19741 | ViGEmButtonMap.insert("vJoy-Key10(RS-Click)" , XUSB_GAMEPAD_RIGHT_THUMB ); |
| 19742 | ViGEmButtonMap.insert("vJoy-Key13(Guide)" , XUSB_GAMEPAD_GUIDE ); |
| 19743 | ViGEmButtonMap.insert("vJoy-Touchpad" , XUSB_GAMEPAD_TOUCHPAD ); |
| 19744 | /* ViGEm Virtual Joystick DPad Direction */ |
| 19745 | ViGEmButtonMap.insert("vJoy-DPad-Up" , XUSB_GAMEPAD_DPAD_UP ); |