Computer Science Canada

how do I make the computer think a button is pressed?

Author:  DanielG [ Sat Aug 02, 2008 5:07 pm ]
Post subject:  how do I make the computer think a button is pressed?

can someone tell me how to make the computer think a button or the mouse is pressed. So for example, have it so that while the programming is running, if you press on the button 'n' it might think you pressed 'r' at the time. Can someone tell me how to do this in preferably C++ or Turing. Though if it's possible and easy to do it with another language then thats fine.
Thanks.


: