Add a FreePIE script that makes more buttons on the X52 Pro usable for Elite.
This commit is contained in:
parent
ed7a00a181
commit
3f5d4bd273
25
FreePIE/x52pro_mfd_freedom.py
Executable file
25
FreePIE/x52pro_mfd_freedom.py
Executable file
|
@ -0,0 +1,25 @@
|
||||||
|
# This is a script for FreePIE (http://andersmalmgren.github.io/FreePIE/)
|
||||||
|
#
|
||||||
|
# It binds the MFD buttons on the x52pro to output keypad button presses.
|
||||||
|
|
||||||
|
if starting:
|
||||||
|
x52pro = joystick[1]
|
||||||
|
|
||||||
|
class mfd():
|
||||||
|
LeftRollerClick = x52pro.getDown(31)
|
||||||
|
LeftRollerUp = x52pro.getDown(34)
|
||||||
|
LeftRollerDown = x52pro.getDown(35)
|
||||||
|
RightRollerClick = x52pro.getDown(38)
|
||||||
|
RightRollerUp = x52pro.getDown(36)
|
||||||
|
RightRollerDown = x52pro.getDown(37)
|
||||||
|
StartStop = x52pro.getDown(32)
|
||||||
|
Reset = x52pro.getDown(33)
|
||||||
|
|
||||||
|
keyboard.setKey(Key.NumberPad4, mfd.LeftRollerClick)
|
||||||
|
keyboard.setKey(Key.NumberPad7, mfd.LeftRollerUp)
|
||||||
|
keyboard.setKey(Key.NumberPad1, mfd.LeftRollerDown)
|
||||||
|
keyboard.setKey(Key.NumberPad6, mfd.RightRollerClick)
|
||||||
|
keyboard.setKey(Key.NumberPad8, mfd.RightRollerUp)
|
||||||
|
keyboard.setKey(Key.NumberPad3, mfd.RightRollerDown)
|
||||||
|
keyboard.setKey(Key.NumberPad2, mfd.Reset)
|
||||||
|
keyboard.setKey(Key.NumberPad5, mfd.StartStop)
|
Reference in New Issue
Block a user