git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29480
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
\membersection{::wxGetKeyState}\label{wxgetkeystate}
\membersection{::wxGetKeyState}\label{wxgetkeystate}
-\func{bool}{wxGetKeyState}{\param{const wxKeyCode\& }{key}}
+\func{bool}{wxGetKeyState}{\param{wxKeyCode }{key}}
Returns \true if the key parameter is currently pressed on the keyboard, or
with modifier keys, (caps lock, etc) if the key is active (the led light is
Returns \true if the key parameter is currently pressed on the keyboard, or
with modifier keys, (caps lock, etc) if the key is active (the led light is
// 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.
// 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(const wxKeyCode& key);
+WXDLLEXPORT bool wxGetKeyState(wxKeyCode key);
// Don't synthesize KeyUp events holding down a key and producing
// Don't synthesize KeyUp events holding down a key and producing
-bool wxGetKeyState(const wxKeyCode& key) //virtual key code if < 10.2.x, else see below
+bool wxGetKeyState(wxKeyCode key) //virtual key code if < 10.2.x, else see below
{
#ifdef __DARWIN__
// Startup HID keyboard for getting key codes on DARWIN
{
#ifdef __DARWIN__
// Startup HID keyboard for getting key codes on DARWIN
-bool wxGetKeyState(const wxKeyCode& key) //virtual key code if < 10.2.x, else see below
+bool wxGetKeyState(wxKeyCode key) //virtual key code if < 10.2.x, else see below
{
#if __WXMAC_CARBON__
//TODO: Low get map...
{
#if __WXMAC_CARBON__
//TODO: Low get map...
-bool wxGetKeyState(const wxKeyCode& key)
+bool wxGetKeyState(wxKeyCode key)
{
bool bVirtual;
int vkey = wxCharCodeWXToMSW(key, &bVirtual);
{
bool bVirtual;
int vkey = wxCharCodeWXToMSW(key, &bVirtual);
-bool wxGetKeyState(const wxKeyCode& key)
+bool wxGetKeyState(wxKeyCode key)
{
#if defined(__WXX11__)
Display *pDisplay = (Display*) wxApp::GetDisplay();
{
#if defined(__WXX11__)
Display *pDisplay = (Display*) wxApp::GetDisplay();