From: John L. <jla...@gm...> - 2013-09-11 01:57:48
|
On Sun, Sep 8, 2013 at 6:10 PM, Paul K <pau...@ya...> wrote: > Hi John, > > I'm trying to call wx.wxMouseEvent():GetModifiers(), but get "wxLua: > Unable to call an unknown method 'GetModifiers' on a 'wxMouseEvent' > type." > > wxMouseEvent is inherited from wxKeyboardState (among other things), > so it should definitely work. In fact, I can call some methods (like > ControlDown() and CmdDown()) just fine, but none of the modifier > methods (GetModifiers(), HasModifiers(), HasAnyModifiers(), and so on) > work (http://docs.wxwidgets.org/trunk/classwx_keyboard_state.html). > > That function (and class hierarchy) only exists in wxWidgets 2.9 onwards. It's just an alternative to the current ControlDown(), AltDown(), ShiftDown() functions. Will those work for you in the near term? Regards, John |