Let's keep this on the list since its of general interest, and others can answer these questions as well.

For that, you will need the [hid] object, which gives you raw access to HID devices.  Its for Mac OS X and GNU/Linux.  But if you are patient, I am working right now on the next version which should also support Windows.

.hc

On May 24, 2006, at 4:58 PM, Carlos Caires wrote:

Yes, thank you, but if I press a Key continuously, I will receive several bangs – and this is what I do not want.

The bang should be when I start pressing the key, and when I finishes pressing it (letīs say during 10 seconds).

Thanks,
Carlos.


On 06/05/24 15:54, "Hans-Christoph Steiner" <hans@eds.org> wrote:


[key] gives you data on key down, [keyup] on up, and [keyname] give you both in a different format.

.hc

On May 24, 2006, at 4:42 PM, Carlos Caires wrote:


 Hi,
 
 Is there any method to receive a "bang" ONLY when I start or finishes pressing a key on the keyboard? (and not in-between)
 
 In attach, the patch for better understanding.
 
 Thanks.
 
 Carlos Caires
<bang-question.pd>
_______________________________________________
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
 

 


 

____________________________________________________________________________



 

"Information wants to be free."


                                     -Stewart Brand
 





____________________________________________________________________________

                            http://at.or.at/hans/