NOTE! This site uses cookies and similar technologies.

If you not change browser settings, you agree to it.

I understand

Welcome, Guest
Username: Password: Remember me

TOPIC: Mele F10 Fly Mouse + Keyboard + Remote

Mele F10 Fly Mouse + Keyboard + Remote 5 years 2 months ago #1

  • mfabbri
  • mfabbri's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
I've such 3-in-1 2.4GHz Wireless device, and I would like to use it with my Openelec box. On the 'remote' side of the device, there is a big button in the middle of the arrow keys, that should be the 'enter key, but instead this button is the left mouse button... I searched for a solution to remap the mouse key to a custom keyboard key, and found BTNX utility (and IMWheel). It's possible to integrate it (or something similar) in Openelec? I'm wondering if someone had already had (and solved) a similiar problem, and could share such experience.

This is the device:

Last Edit: 5 years 2 months ago by mfabbri.
The administrator has disabled public write access.

Re: Mele F10 Fly Mouse + Keyboard + Remote 5 years 2 months ago #2

  • ancalex
  • ancalex's Avatar
  • Offline
  • Expert Boarder
  • Posts: 313
  • Thank you received: 50
  • Karma: 30
Hi
And the rest of buttons are working ok? i'm interested especially in the keyboard part of the remote
The administrator has disabled public write access.

Re: Mele F10 Fly Mouse + Keyboard + Remote 5 years 2 months ago #3

  • mfabbri
  • mfabbri's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
The 'keyboard'-side works like a charm, but there are 2 (or 3) buttons that are mouse buttons on the 'remote'-side (in particular the big button in the middle of arrows keys): They are quite unusable in OpenElec/XBMC (of course, it's usable as mouse, but moving a mouse cursor with a WII-like remote is not so confortable, in my opinion). To be really usable these buttons should be remapped to keyboard buttons like 'Enter', 'Back', and so on... Maybe someone had already developed an add-on to include BTNX or IMWHEEL utils, that seems to be a viable solution to remap mouse keys -> keyboard keys. Then we should hide the mouse cursor, but I think this is the easy part.
Regards,
Michele.
The administrator has disabled public write access.

Re: Mele F10 Fly Mouse + Keyboard + Remote 5 years 2 months ago #4

  • ancalex
  • ancalex's Avatar
  • Offline
  • Expert Boarder
  • Posts: 313
  • Thank you received: 50
  • Karma: 30
If you disable mouse in system > settings > input devices what is happening with the remote keys?
The administrator has disabled public write access.

Re: Mele F10 Fly Mouse + Keyboard + Remote 5 years 2 months ago #5

  • mfabbri
  • mfabbri's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
Already done. Mouse cursor disappear, and mouse keys doesn't work, as expected.
The administrator has disabled public write access.

Re: Mele F10 Fly Mouse + Keyboard + Remote 5 years 2 months ago #6

  • ancalex
  • ancalex's Avatar
  • Offline
  • Expert Boarder
  • Posts: 313
  • Thank you received: 50
  • Karma: 30
Maybe you can install evtest addon to see what's the output of the not so good working keys
The administrator has disabled public write access.

Re: Mele F10 Fly Mouse + Keyboard + Remote 5 years 2 months ago #7

  • mfabbri
  • mfabbri's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
Ok, done:
root ~ # cat /proc/bus/input/devices
I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input0
U: Uniq=
H: Handlers=kbd event0 
B: PROP=0
B: EV=3
B: KEY=10000000000000 0

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input1
U: Uniq=
H: Handlers=kbd event1 
B: PROP=0
B: EV=3
B: KEY=10000000000000 0

I: Bus=0003 Vendor=1915 Product=af11 Version=0111
N: Name="2.4G  Wireless Receiver "
P: Phys=usb-0000:00:1d.2-2/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.2/usb4/4-2/4-2:1.0/input/input2
U: Uniq=
H: Handlers=kbd event2 
B: PROP=0
B: EV=120013
B: KEY=1000000000007 ff9f207ac14057ff febeffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=1f

I: Bus=0003 Vendor=1915 Product=af11 Version=0111
N: Name="2.4G  Wireless Receiver "
P: Phys=usb-0000:00:1d.2-2/input1
S: Sysfs=/devices/pci0000:00/0000:00:1d.2/usb4/4-2/4-2:1.1/input/input3
U: Uniq=
H: Handlers=kbd mouse0 event3 
B: PROP=0
B: EV=1f
B: KEY=4837fff072ff32d bf54444600000000 ff0001 20f908b17c000 677bfad941dfed 9ed68000004400 10000002
B: REL=1c3
B: ABS=100000000
B: MSC=10

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel Headphone"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input4
U: Uniq=
H: Handlers=event4 
B: PROP=0
B: EV=21
B: SW=4

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA NVidia HDMI/DP,pcm=9"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1c.0/0000:04:00.1/sound/card1/input5
U: Uniq=
H: Handlers=event5 
B: PROP=0
B: EV=21
B: SW=100

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA NVidia HDMI/DP,pcm=8"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1c.0/0000:04:00.1/sound/card1/input6
U: Uniq=
H: Handlers=event6 
B: PROP=0
B: EV=21
B: SW=100

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA NVidia HDMI/DP,pcm=7"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1c.0/0000:04:00.1/sound/card1/input7
U: Uniq=
H: Handlers=event7 
B: PROP=0
B: EV=21
B: SW=100

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA NVidia HDMI/DP,pcm=3"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1c.0/0000:04:00.1/sound/card1/input8
U: Uniq=
H: Handlers=event8 
B: PROP=0
B: EV=21
B: SW=100

Evtest on /dev/input/event3
root ~ # evtest /dev/input/event3
Input driver version is 1.0.1
Input device ID: bus 0x3 vendor 0x1915 product 0xaf11 version 0x111
Input device name: "2.4G  Wireless Receiver "
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 1 (KEY_ESC)
    Event code 28 (KEY_ENTER)
    Event code 74 (KEY_KPMINUS)
    Event code 78 (KEY_KPPLUS)
    Event code 103 (KEY_UP)
    Event code 105 (KEY_LEFT)
    Event code 106 (KEY_RIGHT)
    Event code 108 (KEY_DOWN)
    Event code 110 (KEY_INSERT)
    Event code 111 (KEY_DELETE)
    Event code 113 (KEY_MUTE)
    Event code 114 (KEY_VOLUMEDOWN)
    Event code 115 (KEY_VOLUMEUP)
    Event code 116 (KEY_POWER)
    Event code 119 (KEY_PAUSE)
    Event code 128 (KEY_STOP)
    Event code 130 (KEY_PROPS)
    Event code 131 (KEY_UNDO)
    Event code 133 (KEY_COPY)
    Event code 134 (KEY_OPEN)
    Event code 135 (KEY_PASTE)
    Event code 136 (KEY_FIND)
    Event code 137 (KEY_CUT)
    Event code 138 (KEY_HELP)
    Event code 139 (KEY_MENU)
    Event code 140 (KEY_CALC)
    Event code 142 (KEY_SLEEP)
    Event code 143 (KEY_WAKEUP)
    Event code 144 (KEY_FILE)
    Event code 150 (KEY_WWW)
    Event code 152 (KEY_SCREENLOCK)
    Event code 155 (KEY_MAIL)
    Event code 156 (KEY_BOOKMARKS)
    Event code 158 (KEY_BACK)
    Event code 159 (KEY_FORWARD)
    Event code 161 (KEY_EJECTCD)
    Event code 163 (KEY_NEXTSONG)
    Event code 164 (KEY_PLAYPAUSE)
    Event code 165 (KEY_PREVIOUSSONG)
    Event code 166 (KEY_STOPCD)
    Event code 167 (KEY_RECORD)
    Event code 168 (KEY_REWIND)
    Event code 169 (KEY_PHONE)
    Event code 171 (KEY_CONFIG)
    Event code 172 (KEY_HOMEPAGE)
    Event code 173 (KEY_REFRESH)
    Event code 174 (KEY_EXIT)
    Event code 176 (KEY_EDIT)
    Event code 177 (KEY_SCROLLUP)
    Event code 178 (KEY_SCROLLDOWN)
    Event code 181 (KEY_NEW)
    Event code 182 (KEY_REDO)
    Event code 206 (KEY_CLOSE)
    Event code 207 (KEY_PLAY)
    Event code 208 (KEY_FASTFORWARD)
    Event code 209 (KEY_BASSBOOST)
    Event code 210 (KEY_PRINT)
    Event code 212 (KEY_CAMERA)
    Event code 216 (KEY_CHAT)
    Event code 217 (KEY_SEARCH)
    Event code 219 (KEY_FINANCE)
    Event code 223 (KEY_CANCEL)
    Event code 228 (KEY_KBDILLUMTOGGLE)
    Event code 231 (KEY_SEND)
    Event code 232 (KEY_REPLY)
    Event code 233 (KEY_FORWARDMAIL)
    Event code 234 (KEY_SAVE)
    Event code 235 (KEY_DOCUMENTS)
    Event code 241 (KEY_VIDEO_NEXT)
    Event code 256 (BTN_0)
    Event code 272 (BTN_LEFT)
    Event code 273 (BTN_RIGHT)
    Event code 274 (BTN_MIDDLE)
    Event code 275 (BTN_SIDE)
    Event code 276 (BTN_EXTRA)
    Event code 277 (BTN_FORWARD)
    Event code 278 (BTN_BACK)
    Event code 279 (BTN_TASK)
    Event code 353 (KEY_SELECT)
    Event code 354 (KEY_GOTO)
    Event code 358 (KEY_INFO)
    Event code 362 (KEY_PROGRAM)
    Event code 366 (KEY_PVR)
    Event code 370 (KEY_SUBTITLE)
    Event code 372 (KEY_ZOOM)
    Event code 374 (KEY_KEYBOARD)
    Event code 376 (KEY_PC)
    Event code 377 (KEY_TV)
    Event code 378 (KEY_TV2)
    Event code 379 (KEY_VCR)
    Event code 380 (KEY_VCR2)
    Event code 381 (KEY_SAT)
    Event code 383 (KEY_CD)
    Event code 384 (KEY_TAPE)
    Event code 386 (KEY_TUNER)
    Event code 387 (KEY_PLAYER)
    Event code 389 (KEY_DVD)
    Event code 392 (KEY_AUDIO)
    Event code 393 (KEY_VIDEO)
    Event code 396 (KEY_MEMO)
    Event code 397 (KEY_CALENDAR)
    Event code 398 (KEY_RED)
    Event code 399 (KEY_GREEN)
    Event code 400 (KEY_YELLOW)
    Event code 401 (KEY_BLUE)
    Event code 402 (KEY_CHANNELUP)
    Event code 403 (KEY_CHANNELDOWN)
    Event code 405 (KEY_LAST)
    Event code 408 (KEY_RESTART)
    Event code 409 (KEY_SLOW)
    Event code 410 (KEY_SHUFFLE)
    Event code 416 (KEY_VIDEOPHONE)
    Event code 417 (KEY_GAMES)
    Event code 418 (KEY_ZOOMIN)
    Event code 419 (KEY_ZOOMOUT)
    Event code 420 (KEY_ZOOMRESET)
    Event code 421 (KEY_WORDPROCESSOR)
    Event code 422 (KEY_EDITOR)
    Event code 423 (KEY_SPREADSHEET)
    Event code 424 (KEY_GRAPHICSEDITOR)
    Event code 425 (KEY_PRESENTATION)
    Event code 426 (KEY_DATABASE)
    Event code 427 (KEY_NEWS)
    Event code 428 (KEY_VOICEMAIL)
    Event code 429 (KEY_ADDRESSBOOK)
    Event code 430 (KEY_MESSENGER)
    Event code 432 (KEY_SPELLCHECK)
    Event code 433 (KEY_LOGOFF)
    Event code 439 (KEY_MEDIA_REPEAT)
    Event code 442 (?)
  Event type 2 (EV_REL)
    Event code 0 (REL_X)
    Event code 1 (REL_Y)
    Event code 6 (REL_HWHEEL)
    Event code 7 (REL_DIAL)
    Event code 8 (REL_WHEEL)
  Event type 3 (EV_ABS)
    Event code 32 (ABS_VOLUME)
      Value      0
      Min        0
      Max      896
  Event type 4 (EV_MSC)
    Event code 4 (MSC_SCAN)
Properties:
Testing ... (interrupt to exit)

The button pressing output:
Event: time 1349348423.592683, -------------- SYN_REPORT ------------
Event: time 1349348423.733683, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001
Event: time 1349348423.733687, type 1 (EV_KEY), code 272 (BTN_LEFT), value 1
Event: time 1349348423.733697, -------------- SYN_REPORT ------------
Event: time 1349348423.864684, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001
Event: time 1349348423.864688, type 1 (EV_KEY), code 272 (BTN_LEFT), value 0
Event: time 1349348423.864693, -------------- SYN_REPORT ------------
The administrator has disabled public write access.

Re: Mele F10 Fly Mouse + Keyboard + Remote 5 years 2 months ago #8

  • mfabbri
  • mfabbri's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
Is it possible to customize this button through keyboard.xml ?
The administrator has disabled public write access.

Re: Mele F10 Fly Mouse + Keyboard + Remote 5 years 2 months ago #9

  • ancalex
  • ancalex's Avatar
  • Offline
  • Expert Boarder
  • Posts: 313
  • Thank you received: 50
  • Karma: 30
I think you can use the keyboard.xml for customizing if you can see that xbmc is receiving the keypress (by code) in /storage/.xbmc/temp/xbmc.log (of course after you enable debugging)
The administrator has disabled public write access.

Re: Mele F10 Fly Mouse + Keyboard + Remote 5 years 2 months ago #10

  • ancalex
  • ancalex's Avatar
  • Offline
  • Expert Boarder
  • Posts: 313
  • Thank you received: 50
  • Karma: 30
there are also others with the same (your) problem here
The administrator has disabled public write access.

Re: Mele F10 Fly Mouse + Keyboard + Remote 5 years 2 months ago #11

  • mfabbri
  • mfabbri's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
Debug Enabled.
Now when I press a keyboard key, I see the output in the xbmc.log:
20:54:34 T:140233026139968   DEBUG: SDLKeyboard: scancode: 39, sym: 006e, unicode: 006e, modifier: 0
20:54:34 T:140233026139968   DEBUG: OnKey: n (f04e) pressed, action is
Pressing the incriminated button, nothing...
The administrator has disabled public write access.

Re: Mele F10 Fly Mouse + Keyboard + Remote 5 years 2 months ago #12

  • mfabbri
  • mfabbri's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
Event: time 1349348423.592683, -------------- SYN_REPORT ------------
Event: time 1349348423.733683, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001
Event: time 1349348423.733687, type 1 (EV_KEY), code 272 (BTN_LEFT), value 1
Event: time 1349348423.733697, -------------- SYN_REPORT ------------
Event: time 1349348423.864684, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001
Event: time 1349348423.864688, type 1 (EV_KEY), code 272 (BTN_LEFT), value 0
Event: time 1349348423.864693, -------------- SYN_REPORT ------------
Is the evtest output useful? Could I use these informations in some way in keyboard.xml ?
The administrator has disabled public write access.

Re: Mele F10 Fly Mouse + Keyboard + Remote 5 years 2 months ago #13

  • Chris2211
  • Chris2211's Avatar
Hi,

I'm trying exactly the same thing and running exactly into the same issue.
I've created a mouse.xml to remap left mouse button and to disable mouse movement.
github.com/xbmc/xbmc/blob/master/system/keymaps/mouse.xml
      
<leftclick>select</leftclick>
<mousemove>noop</mousemove>
I can now move and select (you need to enable mouse in settings) but i've still the problem that the cursor shows up when moveing the remote. I'm not sure if this is the right direction but how to disable the cursor? Or is there a better way?

Chris
The administrator has disabled public write access.

Re: Mele F10 Fly Mouse + Keyboard + Remote 4 years 11 months ago #14

  • ptr727
  • ptr727's Avatar
  • Offline
  • Junior Boarder
  • Posts: 57
  • Karma: 0
I just got one of these remotes, have you figured out how to turn the muse off from the remote, or disable the mouse completely?

Buttons worked as expected with 3 RC1, but as soon as I pressed the mouse button, the mouse turned on, and XBMC goes nuts as it auto selects anything under the cursor.

P.
The administrator has disabled public write access.

Re: Mele F10 Fly Mouse + Keyboard + Remote 4 years 9 months ago #15

  • kitsched
  • kitsched's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
I'm wondering if you managed to solve this. Basically I'm having the same issue. I managed to configure everything to work as I want except that once I press something on the remote the mouse cursor shows up - even if I added:
<mousemove>noop</mousemove>

This is my remote by the way:

The administrator has disabled public write access.