XIM Community

Tut: Microcontrollers as a HID device(s) on XIM adapters.  (Read 60826 times)

Offline Pallo420

  • Member
  • *
  • Posts: 49
    • View Profile
  • Gamertag: Pallo420
Re: Tut: Microcontrollers as a HID device(s) on XIM adapters.
« Reply #360 on: 06:38 PM - 11/03/19 »
The latest version here: 08012016

Install on the top of Arduino IDE 1.6.7 and Teensyduino 1.27


Short description:
This package adds 3 custom USB modes for teensy 3.0, 3.1, 3.2 and LC.
 - Joystick VER 1 is recommended for XIM 3 and EDGE. (Does not work with XIM 4).
 - Joystick VER 2 is for XIM 4.
 - Modified mouse USB mode with support for Aux buttons for XIM 3, 4 and EDGE.


Joystick VER 1
Code: [Select]
Joystick.X(val);
Joystick.Y(val);
Axis values between 0 and 1023.

Code: [Select]
Joystick.Button(button, val);
Joystick.button(button, val);
Button from 1 to 11. Val 1 = pressed, 0 = released.


Joystick VER 2
Code: [Select]
Joystick.X(val);
Joystick.Y(val);
Axis values between 0 and 1023.

Code: [Select]
Joystick.Button(button, val);
Joystick.button(button, val);
Button from 1 to 35. Val 1 = pressed, 0 = released.


Mouse
Code: [Select]
Mouse.X(val);
Mouse.Y(val);
Mouse axis relative movement.

Code: [Select]
Mouse.scroll(val);
Mouse.pan(val);
Use these for scroll direction(0 is centered):
Code: [Select]
SCROLL_UP
SCROLL_DOWN
PAN_LEFT
PAN_RIGHT


Code: [Select]
Mouse.Button(button, val);
Mouse.button(button, val);
Val 1 = pressed, 0 = released. Use these for button names:
Code: [Select]
XIM4_Left
XIM4_Right
XIM4_Middle
XIM4_Back
XIM4_Forward
XIM4_Aux1
XIM4_Aux2
XIM4_Aux3
XIM4_Aux4
XIM4_Aux5
XIM4_Aux6
XIM4_Aux7
XIM4_Aux8
XIM4_Aux9
XIM4_Aux10
XIM4_Aux11

Has this been tried with the XIM Apex?