LinuxMCE Forums
May 22, 2013, 10:46:43 pm GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: Mapping F6, F7 and F8 in air mouse  (Read 697 times)
Vagner
Regular Poster
**
Posts: 21


View Profile
« on: July 20, 2010, 02:11:15 am »

Hello everyone,

Can someone enlighten me: I am trying to map the functions in air mouse with three aditional buttons. The command "xbindkeys-k" I get the following when I press one of these keys:
"(Scheme function)"
    m: 0x0 + c:182
    NoSymbol

The same command says to put in $home/.xbindkeysrc. Where and how should I put it on the orbiter to map F6, or F7...?

I've tried everything in http://wiki.linuxmce.org/index.php/Use_Additional_Mouse_Buttons, but nothing worked. Already lost hours with it :-(

Thanks,
Logged
sambuca
Guru
****
Posts: 420


View Profile
« Reply #1 on: July 20, 2010, 09:46:19 am »

What mouse device is this?

br,
sambuca
Logged
Vagner
Regular Poster
**
Posts: 21


View Profile
« Reply #2 on: July 20, 2010, 01:25:54 pm »

Is a Gyration GYM2100NA:
http://www.gyration.com/index.php/us/products/in-air-micekeyboards/air-mouse.html

Thanks,
Logged
Techstyle
Addicted
*
Posts: 662



View Profile WWW
« Reply #3 on: July 20, 2010, 07:07:30 pm »

You should create a device template.  It is really very easy.

You could use template 1812 Gyration Go Mouse or 2147 TS820 Trackball mouse as an example and use information from http://wiki.linuxmce.org/index.php/Creating_a_Device_Template_for_a_Remote_that_uses_the_kernel_input_subsystem

Pay particular attention to steps 6, 7 and Plug and Play and use xev to get the codes your mouse puts out then reference the existing templates and you should be able to work it out.  if you just want to map F6,F7,F8 the TS820 template maps just those such that in the #60 Mapping box:

Code:
2,115=2,73
3,115=3,73
2,178=2,74
3,178=3,74
2,236=2,72
3,236=3,72

where 115 is the code generated when the button I wanted as F7 is pressed (73 is the code for F7);
178 is the code generated when the button I wanted as F8 is pressed (74 is the code for F8);
236 is the code generated when the button I wanted as F6 is pressed (72 is the code for F6);
Logged

Vagner
Regular Poster
**
Posts: 21


View Profile
« Reply #4 on: July 24, 2010, 03:51:57 am »

Hi dear friend,

Thanks, really is simple. Without their help would not have succeeded. Was going in another direction.

Best regards,

Vagner Marques
Logged
Techstyle
Addicted
*
Posts: 662



View Profile WWW
« Reply #5 on: July 25, 2010, 07:26:47 am »

Once you have created  a device template you can submit it and then others can use it.

create a trac ticket and list this in the notes when you make your submission.
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!