GTK : Fix bad direction detection for analog axes.

This commit is contained in:
bgk 2008-09-03 20:02:03 +00:00
parent 81bee10766
commit 644a7719fc
1 changed files with 1 additions and 0 deletions

View File

@ -198,6 +198,7 @@ bool JoypadConfigDialog::bOnConfigIdle()
switch(event.type)
{
case SDL_JOYAXISMOTION:
if (abs(event.jaxis.value) < 16384) continue;
if (event.jaxis.which != m_oPreviousEvent.jaxis.which ||
event.jaxis.axis != m_oPreviousEvent.jaxis.axis ||
(event.jaxis.value > 0 && m_oPreviousEvent.jaxis.value < 0) ||