Implemented SDL_GetHintBoolean() to make it easier to check boolean hints
This commit is contained in:
parent
98fbc3fc5d
commit
1b032a0419
26 changed files with 68 additions and 136 deletions
|
@ -44,8 +44,7 @@ static SDL_bool loaded_xinput = SDL_FALSE;
|
|||
int
|
||||
SDL_XINPUT_HapticInit(void)
|
||||
{
|
||||
const char *env = SDL_GetHint(SDL_HINT_XINPUT_ENABLED);
|
||||
if (!env || SDL_atoi(env)) {
|
||||
if (SDL_GetHintBoolean(SDL_HINT_XINPUT_ENABLED, SDL_TRUE)) {
|
||||
loaded_xinput = (WIN_LoadXInputDLL() == 0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue