From 9486490cbb15593ad3b3f7d12c6d083def85d02b Mon Sep 17 00:00:00 2001 From: Ben Anderson Date: Sun, 13 Mar 2005 20:32:13 +0000 Subject: [PATCH] Fix numerous syntax and semantic errors --- .../arch/InputHandler/InputHandler_X11.cpp | 19 +++++++++---------- .../src/arch/InputHandler/InputHandler_X11.h | 2 +- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/stepmania/src/arch/InputHandler/InputHandler_X11.cpp b/stepmania/src/arch/InputHandler/InputHandler_X11.cpp index 1bee4a03ed..a15a50de26 100644 --- a/stepmania/src/arch/InputHandler/InputHandler_X11.cpp +++ b/stepmania/src/arch/InputHandler/InputHandler_X11.cpp @@ -1,10 +1,9 @@ -#include "InputHandler_X11.h" - #include "global.h" -#include "InputHandler_Xlib.h" +#include "InputHandler_X11.h" #include "RageUtil.h" #include "RageLog.h" #include "RageDisplay.h" +#include "archutils/Unix/X11Helper.h" #include #include @@ -110,13 +109,13 @@ static RageKeySym XSymToKeySym( int key ) return KEY_INVALID; } -InputHandler_X11::InputHandler_Xlib() +InputHandler_X11::InputHandler_X11() { X11Helper::Go(); X11Helper::OpenMask(KeyPressMask); X11Helper::OpenMask(KeyReleaseMask); } -InputHandler_X11::~InputHandler_Xlib() +InputHandler_X11::~InputHandler_X11() { X11Helper::CloseMask(KeyPressMask); X11Helper::CloseMask(KeyReleaseMask); X11Helper::Stop(); @@ -129,12 +128,12 @@ void InputHandler_X11::Update(float fDeltaTime) || XCheckTypedEvent(X11Helper::Dpy(), KeyRelease, &event) ) { LOG->Trace("key: sym %i, key %i, state %i", - event.xkey.keycode, XSymToKeySym(event.key.keycode), - event.key.state ); + event.xkey.keycode, XSymToKeySym(event.xkey.keycode), + event.xkey.state ); DeviceInput di( DEVICE_KEYBOARD, - XSymToKeySym(event.key.keycode) ); - ButtonPressed(di, event.key.state); + XSymToKeySym(event.xkey.keycode) ); + ButtonPressed(di, event.xkey.state); } InputHandler::UpdateTimer(); @@ -171,4 +170,4 @@ void InputHandler_X11::GetDevicesAndDescriptions( * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR * PERFORMANCE OF THIS SOFTWARE. - */ \ No newline at end of file + */ diff --git a/stepmania/src/arch/InputHandler/InputHandler_X11.h b/stepmania/src/arch/InputHandler/InputHandler_X11.h index 51de4349cc..546b4cd1ac 100644 --- a/stepmania/src/arch/InputHandler/InputHandler_X11.h +++ b/stepmania/src/arch/InputHandler/InputHandler_X11.h @@ -12,7 +12,7 @@ public: ~InputHandler_X11(); void Update(float fDeltaTime); void GetDevicesAndDescriptions(vector& vDevicesOut, vector& vDescriptionsOut); -} +}; #endif