mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06: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:
@ -24,37 +24,6 @@ extern char **environ;
|
||||
namespace X11Utils
|
||||
{
|
||||
|
||||
void SendButtonEvent(Display *dpy, int button, int x, int y, bool pressed)
|
||||
{
|
||||
XEvent event;
|
||||
Window win = (Window)Core::GetWindowHandle();
|
||||
|
||||
// Init X event structure for mouse button press event
|
||||
event.xbutton.type = pressed ? ButtonPress : ButtonRelease;
|
||||
event.xbutton.x = x;
|
||||
event.xbutton.y = y;
|
||||
event.xbutton.button = button;
|
||||
|
||||
// Send the event
|
||||
if (!XSendEvent(dpy, win, False, False, &event))
|
||||
ERROR_LOG(VIDEO, "Failed to send mouse button event to the emulator window.");
|
||||
}
|
||||
|
||||
void SendMotionEvent(Display *dpy, int x, int y)
|
||||
{
|
||||
XEvent event;
|
||||
Window win = (Window)Core::GetWindowHandle();
|
||||
|
||||
// Init X event structure for mouse motion
|
||||
event.xmotion.type = MotionNotify;
|
||||
event.xmotion.x = x;
|
||||
event.xmotion.y = y;
|
||||
|
||||
// Send the event
|
||||
if (!XSendEvent(dpy, win, False, False, &event))
|
||||
ERROR_LOG(VIDEO, "Failed to send mouse button event to the emulator window.");
|
||||
}
|
||||
|
||||
void EWMH_Fullscreen(Display *dpy, int action)
|
||||
{
|
||||
_assert_(action == _NET_WM_STATE_REMOVE ||
|
||||
|
Reference in New Issue
Block a user