| version 1.2 | | version 1.3 |
|---|
| | |
| if (!joy_installed) { | | if (!joy_installed) { |
| return 0; | | return 0; |
| } | | } |
| | | |
| memset(&joy, 0, sizeof(joy)); | | memset(&joy, 0, sizeof(joy)); |
| joy.dwSize = sizeof(joy); | | joy.dwSize = sizeof(joy); |
| joy.dwFlags = JOY_RETURNALL | JOY_USEDEADZONE; | | joy.dwFlags = JOY_RETURNALL | JOY_USEDEADZONE; |
| | |
| return 0; //HH: had to increase to 128 | | return 0; //HH: had to increase to 128 |
| if ( joystick.axis_max[axn] - joystick.axis_center[axn] < 128 ) | | if ( joystick.axis_max[axn] - joystick.axis_center[axn] < 128 ) |
| return 0; //HH: had to increase to 128 | | return 0; //HH: had to increase to 128 |
| | | |
| | | if (!(joystick.present_mask & (1<<axn))) return 0;//fixes joy config bug where it'll always set an axis you don't even have. - 2000/01/14 Matt Mueller |
| | | |
| raw -= joystick.axis_center[axn]; | | raw -= joystick.axis_center[axn]; |
| | | |