<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
From: jbturgid@hotmail.com<br><div>To: pd-list@iem.kug.ac.at<br>Subject: RE: [PD] HID double triggers<br>Date: Wed, 18 Apr 2012 18:27:15 +0000<br><br>

<style><!--
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}

--></style>
<div dir="ltr">
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). <br><br>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. <br><br>I hope this helps.<br><br>Andrew<br><br><div><div id="ecxSkyDrivePlaceholder"></div><hr id="ecxstopSpelling">Date: Wed, 18 Apr 2012 16:53:44 +0100<br>From: james@4thharmonic.com<br>To: pd-list@iem.kug.ac.at<br>Subject: [PD] HID double triggers<br><br>
  

    
  
  
    Hi list,<br>
    <br>
    recently I've been playing around with [hid] again and still have
    the issue with double triggers on linux (see previous post <a href="http://www.mail-archive.com/pd-list%40iem.at/msg32170.html" target="_blank">here</a>).<br>
    <br>
    I've downloaded the latest version of
    
    <a href="http://autobuild.puredata.info/auto-build/latest/Pd-0.43.1-extended-ubuntu-lucid-i386.deb" target="_blank">Pd-0.43.1-extended-ubuntu-lucid-i386.deb</a>
    but I have the same problem with my existing Arch Linux installation
    on my laptop as well.<br>
    <br>
    It works fine on Mac 10.6. The problem is that I basically get two
    identical events for each key press and release, ie:<br>
    <br>
    <tt>[hid] 0.7, written by Hans-Christoph Steiner
      <a class="ecxmoz-txt-link-rfc2396E" href="mailto:hans@eds.org">&lt;hans@eds.org&gt;</a><br>
      &nbsp;&nbsp;&nbsp; compiled on Apr 15 2012 at 08:12:47 <br>
      [hid] opened device 4 (/dev/input/event4): AT Translated Set 2
      keyboard<br>
      print: key key_u 1<br>
      print: key key_u 1<br>
      print: key key_u 0<br>
      print: key key_u 0<br>
    </tt><br>
    Is anyone else having this problem?<br>
    <br>
    thanks<br>
    <br>
    James<br>
    <a href="http://autobuild.puredata.info/auto-build/latest/Pd-0.43.1-extended-ubuntu-lucid-i386.deb" target="_blank"></a>
  

<br>_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -&gt; http://lists.puredata.info/listinfo/pd-list</div>                                               </div></div>                                               </div></body>
</html>