@ -1238,8 +1238,18 @@ void PollInputEvents(void)
}
/ / Register buttons for 2 nd triggers ( because GLFW doesn ' t count these as buttons but rather axis )
CORE . Input . Gamepad . currentButtonState [ i ] [ GAMEPAD_BUTTON_LEFT_TRIGGER_2 ] = ( char ) ( CORE . Input . Gamepad . axisState [ i ] [ GAMEPAD_AXIS_LEFT_TRIGGER ] > 0.1f ) ;
CORE . Input . Gamepad . currentButtonState [ i ] [ GAMEPAD_BUTTON_RIGHT_TRIGGER_2 ] = ( char ) ( CORE . Input . Gamepad . axisState [ i ] [ GAMEPAD_AXIS_RIGHT_TRIGGER ] > 0.1f ) ;
if ( CORE . Input . Gamepad . axisState [ i ] [ GAMEPAD_AXIS_LEFT_TRIGGER ] > 0.1f )
{
CORE . Input . Gamepad . currentButtonState [ i ] [ GAMEPAD_BUTTON_LEFT_TRIGGER_2 ] = 1 ;
CORE . Input . Gamepad . lastButtonPressed = GAMEPAD_BUTTON_LEFT_TRIGGER_2 ;
}
else CORE . Input . Gamepad . currentButtonState [ i ] [ GAMEPAD_BUTTON_LEFT_TRIGGER_2 ] = 0 ;
if ( CORE . Input . Gamepad . axisState [ i ] [ GAMEPAD_AXIS_RIGHT_TRIGGER ] > 0.1f )
{
CORE . Input . Gamepad . currentButtonState [ i ] [ GAMEPAD_BUTTON_RIGHT_TRIGGER_2 ] = 1 ;
CORE . Input . Gamepad . lastButtonPressed = GAMEPAD_BUTTON_RIGHT_TRIGGER_2 ;
}
else CORE . Input . Gamepad . currentButtonState [ i ] [ GAMEPAD_BUTTON_RIGHT_TRIGGER_2 ] = 0 ;
CORE . Input . Gamepad . axisCount [ i ] = GLFW_GAMEPAD_AXIS_LAST + 1 ;
}