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's why I don't want to use a button on the screen.<br><br>But I got another alternative and I'll go with that. event1 is the touchscreen, and I'll use that to slice the signal.<br>
Remember that only I will need to train the classifiers, and models won'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 <<a href="mailto:raster@openmoko.org">raster@openmoko.org</a>> 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 "Paul-Valentin Borza"<br>
<<a href="mailto:paulvalentin@borza.ro">paulvalentin@borza.ro</a>> babbled:<br>
<div><div></div><div class="Wj3C7c"><br>
> Can anyone tell me how can I intercept the AUX button (i.e. detect when the<br>
> AUX is pressed and when it's not)?<br>
> I need a button in order to train the classifiers on the Neo; for the Wii<br>
> I've used the A button.<br>
> The models don't need pushing any buttons when they're being trained,<br>
> 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 "system". you<br>
can lock out the wm'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) <<a href="mailto:raster@openmoko.org">raster@openmoko.org</a>><br>
</font></blockquote></div><br><br clear="all"><br>-- <br><a href="http://www.borza.ro">http://www.borza.ro</a>