Jump to content

Recommended Posts

Posted (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 by HomoHabilis
Posted

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.

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...