mirror of
https://github.com/cc65/cc65.git
synced 2024-09-28 10:55:43 +00:00
Prepare for reading keypresses from the X server.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4461 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
b30d834772
commit
884aff9191
@ -410,7 +410,7 @@ static void* ScreenCreateInstance (unsigned Addr, unsigned Range, void* CfgInfo)
|
|||||||
XDefineCursor (V->ScreenDisplay, V->ScreenWindow, C);
|
XDefineCursor (V->ScreenDisplay, V->ScreenWindow, C);
|
||||||
|
|
||||||
/* Select input events */
|
/* Select input events */
|
||||||
XSelectInput (V->ScreenDisplay, V->ScreenWindow, ExposureMask | StructureNotifyMask);
|
XSelectInput (V->ScreenDisplay, V->ScreenWindow, ExposureMask | StructureNotifyMask | KeyPressMask);
|
||||||
|
|
||||||
/* Show the window */
|
/* Show the window */
|
||||||
XMapRaised (V->ScreenDisplay, V->ScreenWindow);
|
XMapRaised (V->ScreenDisplay, V->ScreenWindow);
|
||||||
@ -626,6 +626,13 @@ static void ScreenEventLoop (void)
|
|||||||
XRefreshKeyboardMapping (&Event.xmapping);
|
XRefreshKeyboardMapping (&Event.xmapping);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case KeyPress:
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
/* Ignore anything else */
|
||||||
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user