Update comments
This commit is contained in:
parent
015db1641f
commit
3418172617
1 changed files with 13 additions and 13 deletions
|
|
@ -1825,7 +1825,7 @@ void PollInputEvents(void)
|
|||
{
|
||||
if (platform.gamepadId[i] == event.jaxis.which)
|
||||
{
|
||||
// SDL axis value range is -32768 to 32767, we normalize it to RayLib's -1.0 to 1.0f range
|
||||
// SDL axis value range is -32768 to 32767, we normalize it to raylib's -1.0 to 1.0f range
|
||||
float value = event.jaxis.value/(float)32767;
|
||||
CORE.Input.Gamepad.axisState[i][axis] = value;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue