February 14, 2006
I'm trying to add actions and stuff to my program... something like GTK so I catch all the KeyDown-s with addFilter but I have one little problem... I want to notify the focused control before taking any action. I tried with notifyListeners (crash) and Display.post (fails). Any other suggestions? Maybe addFilter is not the best solution, but is there other way to catch the key presses of any widget?
February 25, 2006
Control c=display.getFocusControl();
if(c) c.sendEvent(event.type,event);
Top | Discussion index | About this forum | D home