mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-04 03:00:58 +00:00
Implement controller defaults
git-svn-id: https://svn.eduke32.com/eduke32@7968 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
5c96fcb334
commit
b4362aa6a9
11 changed files with 415 additions and 129 deletions
|
@ -111,7 +111,7 @@ static SDL_Surface *loadappicon(void);
|
|||
static mutex_t m_initprintf;
|
||||
|
||||
// Joystick dead and saturation zones
|
||||
uint16_t *joydead, *joysatur;
|
||||
uint16_t joydead[9], joysatur[9];
|
||||
|
||||
#ifdef _WIN32
|
||||
# if SDL_MAJOR_VERSION != 1
|
||||
|
@ -918,9 +918,6 @@ int32_t initinput(void)
|
|||
|
||||
joystick.pAxis = (int32_t *)Xcalloc(joystick.numAxes, sizeof(int32_t));
|
||||
|
||||
joydead = (uint16_t *)Xcalloc(joystick.numAxes, sizeof(uint16_t));
|
||||
joysatur = (uint16_t *)Xcalloc(joystick.numAxes, sizeof(uint16_t));
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@ -948,9 +945,6 @@ int32_t initinput(void)
|
|||
|
||||
for (i = 0; i < joystick.numHats; i++) joystick.pHat[i] = -1; // centre
|
||||
|
||||
joydead = (uint16_t *)Xcalloc(joystick.numAxes, sizeof(uint16_t));
|
||||
joysatur = (uint16_t *)Xcalloc(joystick.numAxes, sizeof(uint16_t));
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue