Hi.
I have an SDL application which works well, however it uses the keypad for control, and the main keyboard as well. which on a laptop is a pain.
What I would like to do (in cocoa/obj-C if possible, since I will be adding this function to another program) is to send keypresses to this program remotely. I will have a small window with a few buttons, basically an onscreen keypad, with buttons labeled for functions.
If it helps this application will be starting the SDL application, and is already listening to stdout & stderr. I am not keen on redirecting stdin since I don't want to have to remap every key (the program uses the mouse a lot so switching between windows will be a pain) this is basically to be a 'helper' application.
e.g. user presses a button with an arrow pointing right, the SDL application is sent an event so it 'sees' that button '6' has been pressed.
If anyone can point me to an example of how to do this, or simply tell me if its not possible.
I see some potentially useful things relating to quartz events, but so far no example of how to actually use them
any help warmly welcomed.
I have an SDL application which works well, however it uses the keypad for control, and the main keyboard as well. which on a laptop is a pain.
What I would like to do (in cocoa/obj-C if possible, since I will be adding this function to another program) is to send keypresses to this program remotely. I will have a small window with a few buttons, basically an onscreen keypad, with buttons labeled for functions.
If it helps this application will be starting the SDL application, and is already listening to stdout & stderr. I am not keen on redirecting stdin since I don't want to have to remap every key (the program uses the mouse a lot so switching between windows will be a pain) this is basically to be a 'helper' application.
e.g. user presses a button with an arrow pointing right, the SDL application is sent an event so it 'sees' that button '6' has been pressed.
If anyone can point me to an example of how to do this, or simply tell me if its not possible.
I see some potentially useful things relating to quartz events, but so far no example of how to actually use them
any help warmly welcomed.