mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-07 00:28:56 +00:00
X11Utils: Remove unneeded SendButtonEvent / SendKeyEvent utilities
This was used to send fake button or key events to every backend to
implement freelook. When I ported these to be based on wx events in
commit 5248211
, I didn't realize that these were now unused, so I didn't
remove them. Do that now.
This commit is contained in:
parent
cb178679f1
commit
354f223f77
3 changed files with 0 additions and 45 deletions
|
@ -1123,18 +1123,6 @@ void CFrame::OnKeyUp(wxKeyEvent& event)
|
|||
|
||||
void CFrame::OnMouse(wxMouseEvent& event)
|
||||
{
|
||||
#if defined(HAVE_X11) && HAVE_X11
|
||||
if (Core::GetState() != Core::CORE_UNINITIALIZED)
|
||||
{
|
||||
if (event.Dragging())
|
||||
X11Utils::SendMotionEvent(X11Utils::XDisplayFromHandle(GetHandle()),
|
||||
event.GetPosition().x, event.GetPosition().y);
|
||||
else
|
||||
X11Utils::SendButtonEvent(X11Utils::XDisplayFromHandle(GetHandle()), event.GetButton(),
|
||||
event.GetPosition().x, event.GetPosition().y, event.ButtonDown());
|
||||
}
|
||||
#endif
|
||||
|
||||
// next handlers are all for FreeLook, so we don't need to check them if disabled
|
||||
if (!g_Config.bFreeLook)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue