Implemented wxGetKeyState for wxGTK (and wxX11 too, but I havn't

tested it there.)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27374 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-05-20 23:37:20 +00:00
parent ef0368834f
commit 97698dc4fe
3 changed files with 299 additions and 251 deletions

View File

@@ -97,15 +97,12 @@ WXDLLIMPEXP_BASE wxString wxGetDataDir();
#if wxUSE_GUI
#if defined(__WXMSW__) || defined(__WXMAC__)
// Get the state of a key (true if pressed, false if not)
// This is generally most useful getting the state of
// Caps Lock, Num Lock and Scroll Lock...
// Note - There is a X11/GTK version which will be here
// soon
WXDLLEXPORT bool wxGetKeyState(wxKeyCode key);
#endif
// Get the state of a key (true if pressed, false if not)
// This is generally most useful getting the state of
// the modifier or toggle keys.
WXDLLEXPORT bool wxGetKeyState(wxKeyCode key);
// Don't synthesize KeyUp events holding down a key and producing
// KeyDown events with autorepeat. On by default and always on