Search found 6 matches
- Sun Jul 03, 2016 12:39 am
- Forum: C++ Development
- Topic: Is it guaranteed that EVT_KEY_UP always fire after EVT_KEY_DOWN for the same key?
- Replies: 4
- Views: 642
Re: Is it guaranteed that EVT_KEY_UP always fire after EVT_KEY_DOWN for the same key?
Does wx do any event handling and queuing on its own? I grepped into the source and it seem wxGTK just forwards it's callbacks to GTK so it seems this is out of order key thing is an upstream bug. Note this happens when many keys are pressed simultaneously (eg. the right and up when moving diagonall...
- Fri Jul 01, 2016 10:52 am
- Forum: C++ Development
- Topic: How can I suppress system or window manager keyboard events from a window?
- Replies: 1
- Views: 339
How can I suppress system or window manager keyboard events from a window?
Some system shortcuts on some Linux distros interfere with some of my application shortcuts. Is there a way to capture them so they don't go to the system? For example alt + scroll wheel is a specific shortcut in my app, on Windows there is no problem (as there is no such shortcut there by default),...
- Fri Jul 01, 2016 9:18 am
- Forum: C++ Development
- Topic: Is it guaranteed that EVT_KEY_UP always fire after EVT_KEY_DOWN for the same key?
- Replies: 4
- Views: 642
Re: Is it guaranteed that EVT_KEY_UP always fire after EVT_KEY_DOWN for the same key?
Linux and wxWidgets 2.8. Looking at the example was good idea. It seems I need to attach the event handler into the wxGLCanvas of the game, and not into the wxApp. In that case the events seem to come in the right order and in the right amounts. I will rafactor the code into that class and see how t...
- Thu Jun 30, 2016 10:41 pm
- Forum: C++ Development
- Topic: Is it guaranteed that EVT_KEY_UP always fire after EVT_KEY_DOWN for the same key?
- Replies: 4
- Views: 642
Is it guaranteed that EVT_KEY_UP always fire after EVT_KEY_DOWN for the same key?
Is it guaranteed that EVT_KEY_UP always fire after EVT_KEY_DOWN for the same key? I made a game where where key down events set the corresponding flag for a key true, while the key up event set it to false. Since this is a game there will be rapid key presses and releases. I noticed that sometimes o...
- Wed Oct 31, 2012 9:23 pm
- Forum: C++ Development
- Topic: wxEVT_KEY_DOWN + other key events does not fire on a wxFrame
- Replies: 2
- Views: 1867
Re: wxEVT_KEY_DOWN + other key events does not fire on a wxF
wxGTK FAQ says wxFrames cannot receive keyboard events at all (but it discusses EVT_CHAR so that's why google results didn't show up). You must create a wxPanel inside it, and SetFocus() on it. That's counter intuitive and I needed to spend 2 hours to find it out....
- Tue Oct 30, 2012 11:29 pm
- Forum: C++ Development
- Topic: wxEVT_KEY_DOWN + other key events does not fire on a wxFrame
- Replies: 2
- Views: 1867
wxEVT_KEY_DOWN + other key events does not fire on a wxFrame
I probably missing something very obvious. But Google search did not show up anything relevant (so it must be sooo obvious that no one have ever had problems with it). I derived a class from wxFrame to make a window. I connected a key down event on it in its constructor: Connect(wxEVT_KEY_DOWN,(wxOb...