call InputHandler::Update

This commit is contained in:
Glenn Maynard
2003-07-13 01:05:05 +00:00
parent 82aabe7c3a
commit dc7182f749
4 changed files with 12 additions and 16 deletions
@@ -2,7 +2,6 @@
#include "InputHandler_Linux_Joystick.h"
#include "RageLog.h"
#include "RageUtil.h"
#include "InputFilter.h"
#include <stdio.h>
#include <unistd.h>
@@ -81,15 +80,15 @@ void InputHandler_Linux_Joystick::Update(float fDeltaTime)
event.type &= ~JS_EVENT_INIT;
switch (event.type) {
case JS_EVENT_BUTTON: {
INPUTFILTER->ButtonPressed(DeviceInput(id, JOY_1 + event.number), event.value);
ButtonPressed(DeviceInput(id, JOY_1 + event.number), event.value);
break;
}
case JS_EVENT_AXIS: {
JoystickButton neg = (JoystickButton)(JOY_LEFT+2*event.number);
JoystickButton pos = (JoystickButton)(JOY_RIGHT+2*event.number);
INPUTFILTER->ButtonPressed(DeviceInput(id, neg), event.value < -16000);
INPUTFILTER->ButtonPressed(DeviceInput(id, pos), event.value > +16000);
ButtonPressed(DeviceInput(id, neg), event.value < -16000);
ButtonPressed(DeviceInput(id, pos), event.value > +16000);
break;
}