| 224 | |
| 225 | #ifdef EDITOR |
| 226 | void SlewControlInit() { |
| 227 | Joystick_active = -1; |
| 228 | |
| 229 | if (!D3EditState.joy_slewing) |
| 230 | return; |
| 231 | |
| 232 | if (joy_IsValid(JOYSTICK_1)) { |
| 233 | tJoyPos joystate; |
| 234 | tJoystick joyid = JOYSTICK_1; |
| 235 | |
| 236 | Joystick_active = (int)joyid; |
| 237 | joy_GetPos((tJoystick)Joystick_active, &joystate); // get all the stick values |
| 238 | |
| 239 | if ((abs(joystate.x) > 32) || (abs(joystate.y) > 32)) |
| 240 | EditorMessageBox("Warning: Your joystick is not centered. You should either center it now or recalibrate."); |
| 241 | } |
| 242 | } |
| 243 | #endif |
| 244 | |
| 245 | int SlewStop(object *obj) { |
no test coverage detected