Author Topic: Mapping F6, F7 and F8 in air mouse  (Read 3519 times)

Vagner

  • Regular Poster
  • **
  • Posts: 21
    • View Profile
Mapping F6, F7 and F8 in air mouse
« on: July 20, 2010, 03: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,

sambuca

  • Guru
  • ****
  • Posts: 462
    • View Profile
Re: Mapping F6, F7 and F8 in air mouse
« Reply #1 on: July 20, 2010, 10:46:19 am »
What mouse device is this?

br,
sambuca

Vagner

  • Regular Poster
  • **
  • Posts: 21
    • View Profile
Re: Mapping F6, F7 and F8 in air mouse
« Reply #2 on: July 20, 2010, 02:25:54 pm »

Techstyle

  • Addicted
  • *
  • Posts: 674
    • View Profile
    • Techstyle UK Ltd.
Re: Mapping F6, F7 and F8 in air mouse
« Reply #3 on: July 20, 2010, 08: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: [Select]
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);

Vagner

  • Regular Poster
  • **
  • Posts: 21
    • View Profile
Re: Mapping F6, F7 and F8 in air mouse
« Reply #4 on: July 24, 2010, 04: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

Techstyle

  • Addicted
  • *
  • Posts: 674
    • View Profile
    • Techstyle UK Ltd.
Re: Mapping F6, F7 and F8 in air mouse
« Reply #5 on: July 25, 2010, 08: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.