summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorSteven Fuller <relnev@icculus.org>2002-09-07 03:28:40 +0000
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-20 02:22:37 +0200
commite8789932e58fb987f8525b26a29272a99980688b (patch)
tree76bbcde85a60108618a564b5f410b09ac10f4cdf /src/main.c
parent7c43155a90b2f66b89b102bf5cee66e16a3e1a2f (diff)
fix pov default
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index b04426e..43a0278 100644
--- a/src/main.c
+++ b/src/main.c
@@ -113,7 +113,7 @@ void ReadJoysticks()
JoystickData.dwRpos = 0;
JoystickData.dwUpos = 0;
JoystickData.dwVpos = 0;
- JoystickData.dwPOV = -1;
+ JoystickData.dwPOV = (DWORD) -1;
if (joy == NULL || !GotJoystick) {
return;
@@ -138,7 +138,7 @@ void ReadJoysticks()
switch (hat) {
default:
case SDL_HAT_CENTERED:
- JoystickData.dwPOV = -1;
+ JoystickData.dwPOV = (DWORD) -1;
break;
case SDL_HAT_UP:
JoystickData.dwPOV = 0;
@@ -415,7 +415,7 @@ int InitSDL()
LoadDeviceAndVideoModePreferences();
if (WantJoystick) {
- SDL_Init(SDL_INIT_JOYSTICK);
+ SDL_InitSubSystem(SDL_INIT_JOYSTICK);
if (SDL_NumJoysticks() > 0) {
/* TODO: make joystick number a configuration parameter */
@@ -432,7 +432,7 @@ int InitSDL()
JoystickData.dwRpos = 0;
JoystickData.dwUpos = 0;
JoystickData.dwVpos = 0;
- JoystickData.dwPOV = -1;
+ JoystickData.dwPOV = (DWORD) -1;
}
}