From 357c0adc3c89d4eff44e30419ee09914b136df97 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 14 Sep 2014 01:06:25 -0400 Subject: Kill off the wx casts within InputCommon and GLInterface. All because someone didn't actually return the wxWindow handle for the edge case. --- Source/Core/InputCommon/ControllerInterface/OSX/OSXKeyboard.mm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Source/Core/InputCommon/ControllerInterface') diff --git a/Source/Core/InputCommon/ControllerInterface/OSX/OSXKeyboard.mm b/Source/Core/InputCommon/ControllerInterface/OSX/OSXKeyboard.mm index 7ff67c0e7f..1294346e1b 100644 --- a/Source/Core/InputCommon/ControllerInterface/OSX/OSXKeyboard.mm +++ b/Source/Core/InputCommon/ControllerInterface/OSX/OSXKeyboard.mm @@ -7,7 +7,6 @@ #include #include #include -#include // wxWidgets #include "InputCommon/ControllerInterface/OSX/OSXKeyboard.h" @@ -45,7 +44,7 @@ Keyboard::Keyboard(IOHIDDeviceRef device, std::string name, int index, void *win CFRelease(elements); } - m_windowid = [[(NSView *)(((wxWindow *)window)->GetHandle()) window] windowNumber]; + m_windowid = [[reinterpret_cast(window) window] windowNumber]; // cursor, with a hax for-loop for (unsigned int i=0; i<4; ++i) -- cgit v1.2.3