[mythtv-users] Program to simulate keypresses

m0j0.j0j0 m0j0 at foofus.net
Fri Jul 11 19:37:29 EDT 2003


Not sure if this is what you're looking or not...

I have a Logitect Cordless Navigator Duo which I've mapped the extra
keys to various programs and commands. I used the kernel patch and
daemon found here: http://rick.vanrein.org/linux/funkey.


Here are the mappings for my particular keyboard. I modified funky.c for
what commands I wanted to execute. Hope this is useful.

Joe



User (moon)     0xe0 0x5f 0xe0 0xdf     120     
F-Lock          --
Email                   0xe0 0x6c 0xe0 0xec     121
SMS*                    0xe0 0xec 0xe0 0xdf     <no open keycode>
Webcam*         0xe0 0x12 0xe0 0x92     <no open keycode>
Rewind          0xe0 0x10 0xe0 0x90     94
Forward         0xe0 0x19 0xe0 0x99     95
Play                    0xe0 0x22 0xe0 0xa2     92
Stop                    0xe0 0x24 0xe0 0xa4     93
Media*          0xe0 0x6d 0xe0 0xed     125
Mute                    0xe0 0x20 0xe0 0xa0     89
VolUp                   0xe0 0x30 0xe0 0xb0     91
VolDn                   0xe0 0x2e 0xe0 0xae     90
iTouch*         0xe0 0x13 0xe0 0x93     126
Search          0xe0 0x65 0xe0 0xe5     122
Shopping*       0xe0 0x14 0xe0 0x94     127
My Home         0xe0 0x32 0xe0 0xb2     124
Favorites       0xe0 0x66 0xe0 0xe6     123

add to: /etc/init.d/keytables

setkeycodes e020  89 e02e  90 e030  91 e022  92 \
        e024  93 e010  94 e019  95 e05f 120 \
        e06c 121 e065 122 e066 123 e032 124 \
        e06d 125 e013 126 e014 127


# add  0xfe00
keycode  89 = U+fe59
keycode  90 = U+fe5a
keycode  91 = U+fe5b
keycode  92 = U+fe5c
keycode  93 = U+fe5d
keycode  94 = U+fe5e
keycode  95 = U+fe5f
keycode 120 = U+fe78
keycode 121 = U+fe79
keycode 122 = U+fe7a
keycode 123 = U+fe7b
keycode 124 = U+fe7c
keycode 125 = U+fe7d
keycode 126 = U+fe7e
keycode 127 = U+fe7f

##shift keycode 120 = U+fe78



On Fri, 2003-07-11 at 17:14, Eric Thelin wrote:
> I saw a post here a while back but can't seem to find it in the archives
> or on the web.  I am looking for a program that simulates a key press
> much like irxevent does for remote keys.  I am trying to setup bindings
> for the extra keys on my logitech wireless keyboard and I want to map
> them to regular keys.
> 
> Eric
> 
> 
> On 11 Jul 2003, Chris Petersen wrote:
> 
> > > I saw a post here a while back but can't seem to find it in the archives
> > > or on the web.  I am looking for a program that simulates a key press
> > > much like irxevent does for remote keys.  I am trying to setup bindings
> > > for the extra keys on my logitech wireless keyboard and I want to map
> > > them to regular keys.
> >
> > hotkeys and lineak do something like this, but unfortunately don't
> > actually map the keys to keystrokes (just events).  You could do some
> > web searching and find out how to do it with xmodmap - this is built
> > into X, and is pretty powerful (but quite cryptic for many things).
> >
> > If you figure it out, please let me know - I have one of those
> > keyboards, too.
> >
> > -Chris
> 
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at snowman.net
> http://lists.snowman.net/cgi-bin/mailman/listinfo/mythtv-users



More information about the mythtv-users mailing list