mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 13:18:50 +00:00
Kill off the wx casts within InputCommon and GLInterface.
All because someone didn't actually return the wxWindow handle for the edge case.
This commit is contained in:
parent
0b44795cf3
commit
357c0adc3c
3 changed files with 5 additions and 11 deletions
|
@ -7,7 +7,6 @@
|
|||
#include <Foundation/Foundation.h>
|
||||
#include <IOKit/hid/IOHIDLib.h>
|
||||
#include <Cocoa/Cocoa.h>
|
||||
#include <wx/wx.h> // 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<NSView*>(window) window] windowNumber];
|
||||
|
||||
// cursor, with a hax for-loop
|
||||
for (unsigned int i=0; i<4; ++i)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue