[maemo-developers] capturing key presses on N770
From: Vinod Nanjaiah Vinod_Nanjaiah at mindtree.comDate: Mon Jun 28 21:27:22 EEST 2010
- Previous message: capturing key presses on N770
- Next message: Error History of running Hello World in Scratchbox and Application Framework
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Frantisek, thanks a lot for your inputs. This is the use case: I want to run a video streaming client in the foreground. In the background I want to run a process that captures the key presses and invokes a script to do something more. I haven't yet had a peek at the evkey.c and bootmenu.sh - hope this is it. Thank you, Vinod ________________________________________ From: Frantisek Dufka [dufkaf at seznam.cz] Sent: Monday, June 28, 2010 9:07 PM To: Vinod Nanjaiah Cc: maemo-developers at maemo.orgg Subject: Re: capturing key presses on N770 Vinod Nanjaiah wrote: > Hi, > I am trying to capture key presses of the Hard keys (Up, Down, Left, > Right, Home, etc) on Nokia N770. > Is it possible to do so using a simple c program or shell script? Not sure what is the scenario you want to use it for. For low level access you can use kernel input subsystem directly see e.g. evkey.c [1] and its usage in bootmenu.sh [2]. Just beware that different devices have different device names and key events still go to the rest of the system. For playing nice with the system using powerlaunch [3] is indeed better. I am not aware of 770 version (the author [4] has/had N800) but the source is here [4]. Maybe it could build fine at least in OS2007 hacker edition. Frantisek 1. https://garage.maemo.org/plugins/scmsvn/viewcvs.php/tags/bootmenu_0_1/?root=bootmenu 2. https://garage.maemo.org/plugins/scmsvn/viewcvs.php/trunk/bootmenu/files/?root=bootmenu 3. http://powerlaunch.garage.maemo.org/ 4. http://austinche.name/maemo/index.html 5. http://repository.maemo.org/extras-devel/pool/diablo/free/source/p/powerlaunch/ http://www.mindtree.com/email/disclaimer.html
- Previous message: capturing key presses on N770
- Next message: Error History of running Hello World in Scratchbox and Application Framework
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]