I want the gui to be just a wrapper for the training application, such that any operation could be done in console mode also.<br>That&#39;s why I don&#39;t want to use a button on the screen.<br><br>But I got another alternative and I&#39;ll go with that. event1 is the touchscreen, and I&#39;ll use that to slice the signal.<br>
Remember that only I will need to train the classifiers, and models won&#39;t need to be trained with pushing the touchscreen.<br>Other people will train only the models for a better recognition accuracy.<br><br>Paul<br><br>
<div class="gmail_quote">On Thu, Jul 10, 2008 at 3:41 PM, The Rasterman Carsten Haitzler &lt;<a href="mailto:raster@openmoko.org">raster@openmoko.org</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thu, 10 Jul 2008 12:39:36 +0300 &quot;Paul-Valentin Borza&quot;<br>
&lt;<a href="mailto:paulvalentin@borza.ro">paulvalentin@borza.ro</a>&gt; babbled:<br>
<div><div></div><div class="Wj3C7c"><br>
&gt; Can anyone tell me how can I intercept the AUX button (i.e. detect when the<br>
&gt; AUX is pressed and when it&#39;s not)?<br>
&gt; I need a button in order to train the classifiers on the Neo; for the Wii<br>
&gt; I&#39;ve used the A button.<br>
&gt; The models don&#39;t need pushing any buttons when they&#39;re being trained,<br>
&gt; because motion is detected with the classifiers.<br>
<br>
</div></div>AUX is a key in X. the problem is it probably has already been captured by<br>
the window manager for things like managing apps or the overall &quot;system&quot;. you<br>
can lock out the wm&#39;s key grabs by grabbing the whole keyboard - this does mean<br>
though that any system management bound to those keys will cease to work.<br>
<br>
my suggestion is to ignore the buttons - there are only 2 and they are<br>
already allocated for tasks to manage apps (eg flip applications, close them,<br>
bring up an app menu, lock the screen etc. all depending which image you use).<br>
<br>
use a button widget on the touchscreen. leave the hardware ones alone - too few<br>
of them :(<br>
<font color="#888888"><br>
--<br>
Carsten Haitzler (The Rasterman) &lt;<a href="mailto:raster@openmoko.org">raster@openmoko.org</a>&gt;<br>
</font></blockquote></div><br><br clear="all"><br>-- <br><a href="http://www.borza.ro">http://www.borza.ro</a>