[PD] HID double triggers

Andrew Faraday jbturgid at hotmail.com
Wed Apr 18 20:27:15 CEST 2012

I've had this problem before with [hid], apparently it's a hardware issue called 'debouncing', which is often ignored because it is often irrelevant (pushed is pushed, for game controllers, rather than a button-on/button-off signal used for most music systems). 

You can deal with the problem in pure data by using a trigger, float and delay of one millisecond. See the attached patch, click the message boxes and watch your terminal for the result. 

I hope this helps.


Date: Wed, 18 Apr 2012 16:53:44 +0100
From: james at 4thharmonic.com
To: pd-list at iem.kug.ac.at
Subject: [PD] HID double triggers


    Hi list,


    recently I've been playing around with [hid] again and still have
    the issue with double triggers on linux (see previous post here).


    I've downloaded the latest version of
    but I have the same problem with my existing Arch Linux installation
    on my laptop as well.


    It works fine on Mac 10.6. The problem is that I basically get two
    identical events for each key press and release, ie:


    [hid] 0.7, written by Hans-Christoph Steiner
      <hans at eds.org>

          compiled on Apr 15 2012 at 08:12:47 

      [hid] opened device 4 (/dev/input/event4): AT Translated Set 2

      print: key key_u 1

      print: key key_u 1

      print: key key_u 0

      print: key key_u 0


    Is anyone else having this problem?






Pd-list at iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20120418/a4b7aa20/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debounce-killer-demo.pd
Type: text/x-puredata
Size: 412 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20120418/a4b7aa20/attachment.bin>

More information about the Pd-list mailing list