X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3497ab0e3b63485daed04763081c5ecb123b0397..8ea079b33ed5dc9345fbfe0aae33db2276b68724:/interface/wx/event.h diff --git a/interface/wx/event.h b/interface/wx/event.h index 8f84dbc1c0..f5d1b1e687 100644 --- a/interface/wx/event.h +++ b/interface/wx/event.h @@ -1512,7 +1512,7 @@ public: else // No Unicode equivalent. { // It's a special key, deal with all the known ones: - switch ( GetKeyCode() ) + switch ( event.GetKeyCode() ) { case WXK_LEFT: case WXK_RIGHT: @@ -1543,11 +1543,15 @@ public: /** Obtains the position (in client coordinates) at which the key was pressed. - Notice that this position is simply the current mouse pointer position - and has no special relationship to the key event itself. + Notice that under most platforms this position is simply the current + mouse pointer position and has no special relationship to the key event + itself. + + @a x and @a y may be @NULL if the corresponding coordinate is not + needed. */ wxPoint GetPosition() const; - void GetPosition(long* x, long* y) const; + void GetPosition(wxCoord* x, wxCoord* y) const; //@} /**