Hi Glus, You almost certainly don't want to change what code the key
outputs; its far more likely you want to change what the program
does in response to that key. If you reprogram the key, then you
confuse your users; they're expecting WASD to output those
letters, even if the program uses that information at times to
obtain a direction. If you reprogram the key then when they try
to input a word, unexpected things happen; at best, the keyboard
becomes an exercise in cryptography. By connecting the signal_key_press_event,
you can handle the input however you like; if the program
determines it's not applicable, the default is that the signal is
passed up to the next handler. If you wish to block all responses
to keyboard input outside your own function, simply return true
(You'll possibly also have to block the key_release_event ). Ian. On 28/10/16 22:00, Glus Xof wrote:
|