HomoHabilis Posted December 23, 2010 Posted December 23, 2010 (edited) Hello again, I need your hand one more time, are there any on...() methods like onDoubleClick(), onKeyPress_KEY() I need something to TRIGGER the main method. thanks for the help UPD: I mean,I dont want the method to run if not triggered Edited December 23, 2010 by HomoHabilis Quote
Casper Posted December 29, 2010 Posted December 29, 2010 There are not. The Teensy is one way. You can send input but you can't really read input easily. Not unless you install a program on the host and relay events back to the Teensy via serial. You can respond to input on the Teensy though. Such as hooking up a few buttons to it and waiting until that button is pressed, but I think your looking at reading when a keyboard button is pressed on the host machine. You could maybe create a pass though using the Teensy, read the input of a keyboard hooked to the Teensy and then relay it. I do know there is a library for the Arduino that will let you read a PS2 keyboard. Could do PS2 in and USB out. Hope that helps. Quote
Netshroud Posted December 30, 2010 Posted December 30, 2010 You can poll for changes in num lock, caps lock and scroll lock, but that's about it. Quote
Alias Posted December 30, 2010 Posted December 30, 2010 You could try using interrupts which the Teensy does support but they are extremely, extremely complex to use. Not for the novice programmer although if you want to have a crack here is the documentation. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.