Allow all buttons and axes on virtual devices to be specified by either number or an explicit list. (#5)
Reviewed-on: #5 Co-authored-by: Anna Rose Wiggins <annabunches@gmail.com> Co-committed-by: Anna Rose Wiggins <annabunches@gmail.com>
This commit is contained in:
parent
712dcdbc07
commit
6ef0cbd07c
11 changed files with 1114 additions and 130 deletions
|
@ -1,56 +1,218 @@
|
|||
rules:
|
||||
- type: simple
|
||||
### Rotational Controls
|
||||
- type: axis
|
||||
name: pitch
|
||||
input:
|
||||
device: right-stick
|
||||
axis: ABS_X
|
||||
axis: Y
|
||||
deadzone_start: 29000
|
||||
deadzone_end: 31000
|
||||
output:
|
||||
device: main
|
||||
axis: ABS_X
|
||||
device: primary
|
||||
axis: Y
|
||||
|
||||
- type: simple
|
||||
- type: axis
|
||||
name: roll (turret yaw)
|
||||
input:
|
||||
device: right-stick
|
||||
axis: ABS_Y
|
||||
axis: X
|
||||
deadzone_start: 30000
|
||||
deadzone_end: 32000
|
||||
output:
|
||||
device: main
|
||||
axis: ABS_Y
|
||||
device: primary
|
||||
axis: X
|
||||
|
||||
- type: simple
|
||||
input:
|
||||
device: right-stick
|
||||
axis: ABS_THROTTLE
|
||||
output:
|
||||
device: main
|
||||
axis: ABS_THROTTLE
|
||||
|
||||
- type: simple
|
||||
input:
|
||||
device: left-stick
|
||||
axis: ABS_X
|
||||
output:
|
||||
device: main
|
||||
axis: ABS_RX
|
||||
|
||||
- type: simple
|
||||
input:
|
||||
device: left-stick
|
||||
axis: ABS_Y
|
||||
output:
|
||||
device: main
|
||||
axis: ABS_RY
|
||||
|
||||
- type: simple
|
||||
input:
|
||||
device: left-stick
|
||||
axis: ABS_THROTTLE
|
||||
output:
|
||||
device: main
|
||||
axis: ABS_RUDDER
|
||||
|
||||
- type: simple
|
||||
- type: axis
|
||||
name: yaw
|
||||
input:
|
||||
device: pedals
|
||||
axis: ABS_Z
|
||||
axis: Z
|
||||
deadzone_start: 124
|
||||
deadzone_end: 132
|
||||
output:
|
||||
device: main
|
||||
axis: ABS_Z
|
||||
device: primary
|
||||
axis: Z
|
||||
|
||||
### Translation Controls
|
||||
- type: axis
|
||||
name: throttle
|
||||
input:
|
||||
device: left-stick
|
||||
axis: Y
|
||||
deadzone_start: 29500
|
||||
deadzone_end: 31000
|
||||
output:
|
||||
device: primary
|
||||
axis: RY
|
||||
|
||||
- type: axis
|
||||
name: translation lateral
|
||||
input:
|
||||
device: left-stick
|
||||
axis: X
|
||||
deadzone_start: 29000
|
||||
deadzone_end: 30500
|
||||
output:
|
||||
device: primary
|
||||
axis: RX
|
||||
|
||||
### Freelook controls
|
||||
- type: axis
|
||||
name: Freelook X
|
||||
input:
|
||||
device: right-stick
|
||||
axis: RX
|
||||
deadzone_start: 29500
|
||||
deadzone_end: 30250
|
||||
output:
|
||||
device: secondary
|
||||
axis: X
|
||||
- type: axis
|
||||
name: Freelook Y
|
||||
input:
|
||||
device: right-stick
|
||||
axis: RY
|
||||
deadzone_start: 29500
|
||||
deadzone_end: 30250
|
||||
output:
|
||||
device: secondary
|
||||
axis: Y
|
||||
|
||||
|
||||
# Vertical thrust is on the VPC "paddles" in the main flight mode
|
||||
- type: axis
|
||||
name: translation up
|
||||
modes:
|
||||
- main
|
||||
input:
|
||||
device: right-stick
|
||||
axis: ABS_THROTTLE
|
||||
deadzone_start: 0
|
||||
deadzone_end: 500
|
||||
output:
|
||||
device: primary
|
||||
axis: ABS_THROTTLE
|
||||
|
||||
- type: axis
|
||||
name: translation down
|
||||
modes:
|
||||
- main
|
||||
input:
|
||||
device: left-stick
|
||||
axis: ABS_THROTTLE
|
||||
deadzone_start: 0
|
||||
deadzone_end: 500
|
||||
output:
|
||||
device: primary
|
||||
axis: ABS_RUDDER
|
||||
|
||||
# By default, the left thumbstick controls tractor beam via mousewheel
|
||||
- type: axis-to-relaxis
|
||||
name: tractor in
|
||||
modes:
|
||||
- main
|
||||
repeat_rate_max: 10
|
||||
repeat_rate_min: 100
|
||||
increment: -1
|
||||
input:
|
||||
device: left-stick
|
||||
axis: RY
|
||||
deadzone_start: 0
|
||||
deadzone_end: 30500
|
||||
output:
|
||||
device: mouse
|
||||
axis: REL_WHEEL
|
||||
|
||||
- type: axis-to-relaxis
|
||||
name: tractor out
|
||||
modes:
|
||||
- main
|
||||
repeat_rate_max: 10
|
||||
repeat_rate_min: 100
|
||||
increment: 1
|
||||
input:
|
||||
device: left-stick
|
||||
axis: RY
|
||||
deadzone_start: 29500
|
||||
deadzone_end: 64000
|
||||
inverted: true
|
||||
output:
|
||||
device: mouse
|
||||
axis: REL_WHEEL
|
||||
|
||||
# In Mining mode, we move vertical thrust to the left thumbstick
|
||||
# and remap the right paddle to be mining laser power
|
||||
- type: axis
|
||||
name: translation up alternate
|
||||
modes:
|
||||
- mining
|
||||
input:
|
||||
device: left-stick
|
||||
axis: RY
|
||||
deadzone_start: 29250
|
||||
deadzone_end: 64000
|
||||
output:
|
||||
device: primary
|
||||
axis: ABS_THROTTLE
|
||||
|
||||
- type: axis
|
||||
name: translation down alternate
|
||||
modes:
|
||||
- mining
|
||||
input:
|
||||
device: left-stick
|
||||
axis: RY
|
||||
deadzone_start: 0
|
||||
deadzone_end: 30500
|
||||
output:
|
||||
device: primary
|
||||
axis: ABS_RUDDER
|
||||
|
||||
- type: axis
|
||||
name: mining laser
|
||||
modes:
|
||||
- mining
|
||||
input:
|
||||
device: right-stick
|
||||
axis: ABS_THROTTLE
|
||||
deadzone_start: 0
|
||||
deadzone_end: 500
|
||||
output:
|
||||
device: primary
|
||||
axis: RZ
|
||||
|
||||
# In tractor mode, most flight controls are disabled to prevent us
|
||||
# from accidentally trying to fly off without throttle control
|
||||
# - type: axis-to-relaxis
|
||||
# name: tractor in
|
||||
# modes:
|
||||
# - tractor
|
||||
# repeat_rate_max: 10
|
||||
# repeat_rate_min: 100
|
||||
# increment: -1
|
||||
# input:
|
||||
# device: left-stick
|
||||
# axis: Y
|
||||
# deadzone_start: 0
|
||||
# deadzone_end: 30250
|
||||
# output:
|
||||
# device: mouse
|
||||
# axis: REL_WHEEL
|
||||
|
||||
# - type: axis-to-relaxis
|
||||
# name: tractor out
|
||||
# modes:
|
||||
# - tractor
|
||||
# repeat_rate_max: 10
|
||||
# repeat_rate_min: 100
|
||||
# increment: 1
|
||||
# input:
|
||||
# device: left-stick
|
||||
# axis: Y
|
||||
# deadzone_start: 29500
|
||||
# deadzone_end: 64000
|
||||
# inverted: true
|
||||
# output:
|
||||
# device: mouse
|
||||
# axis: REL_WHEEL
|
||||
|
||||
|
|
|
@ -1,21 +1,706 @@
|
|||
rules:
|
||||
- name: Trigger
|
||||
type: combo
|
||||
# Special Rules
|
||||
- name: Right Trigger
|
||||
type: button-combo
|
||||
inputs:
|
||||
- device: right-stick
|
||||
button: BTN_THUMB
|
||||
- device: right-stick
|
||||
button: BTN_THUMB2
|
||||
output:
|
||||
device: main
|
||||
device: primary
|
||||
button: 0
|
||||
|
||||
- name: Left Trigger
|
||||
type: button-combo
|
||||
inputs:
|
||||
- device: left-stick
|
||||
button: BTN_THUMB
|
||||
- device: left-stick
|
||||
button: BTN_THUMB2
|
||||
output:
|
||||
device: primary
|
||||
button: 1
|
||||
|
||||
- name: ButtonBoxModeShift
|
||||
type: mode-select
|
||||
input:
|
||||
device: button-box
|
||||
button: BTN_BASE2
|
||||
output:
|
||||
modes:
|
||||
- main
|
||||
- mining
|
||||
|
||||
# Right Stick
|
||||
- name: R Red Button
|
||||
type: button
|
||||
input:
|
||||
device: right-stick
|
||||
button: BTN_BASE6
|
||||
output:
|
||||
device: primary
|
||||
button: 2
|
||||
- name: R Black Button
|
||||
type: button
|
||||
input:
|
||||
device: right-stick
|
||||
button: BTN_PINKIE
|
||||
output:
|
||||
device: primary
|
||||
button: 3
|
||||
- name: R Pinkie Button
|
||||
type: button
|
||||
input:
|
||||
device: right-stick
|
||||
button: BTN_TRIGGER_HAPPY14
|
||||
output:
|
||||
device: primary
|
||||
button: 4
|
||||
|
||||
- name: R Side Button
|
||||
type: button
|
||||
input:
|
||||
device: right-stick
|
||||
button: BTN_TRIGGER_HAPPY2
|
||||
output:
|
||||
device: primary
|
||||
button: 5
|
||||
- name: R Side Up
|
||||
type: button
|
||||
input:
|
||||
device: right-stick
|
||||
button: BTN_TRIGGER_HAPPY3
|
||||
output:
|
||||
device: primary
|
||||
button: 6
|
||||
- name: R Side Down
|
||||
type: button
|
||||
input:
|
||||
device: right-stick
|
||||
button: BTN_TRIGGER_HAPPY4
|
||||
output:
|
||||
device: primary
|
||||
button: 7
|
||||
|
||||
- name: R High Hat
|
||||
type: button
|
||||
input:
|
||||
device: right-stick
|
||||
button: "0x12c"
|
||||
output:
|
||||
device: primary
|
||||
button: 8
|
||||
- name: R High Hat Up
|
||||
type: button
|
||||
input:
|
||||
device: right-stick
|
||||
button: "0x12d"
|
||||
output:
|
||||
device: primary
|
||||
button: 9
|
||||
- name: R High Hat Right
|
||||
type: button
|
||||
input:
|
||||
device: right-stick
|
||||
button: "0x12e"
|
||||
output:
|
||||
device: primary
|
||||
button: 10
|
||||
- name: R High Hat Down
|
||||
type: button
|
||||
input:
|
||||
device: right-stick
|
||||
button: BTN_DEAD
|
||||
output:
|
||||
device: primary
|
||||
button: 11
|
||||
- name: R High Hat Left
|
||||
type: button
|
||||
input:
|
||||
device: right-stick
|
||||
button: BTN_TRIGGER_HAPPY1
|
||||
output:
|
||||
device: primary
|
||||
button: 12
|
||||
|
||||
- name: R Low Hat
|
||||
type: button
|
||||
input:
|
||||
device: right-stick
|
||||
button: BTN_BASE
|
||||
output:
|
||||
device: primary
|
||||
button: 13
|
||||
- name: R Low Hat Up
|
||||
type: button
|
||||
input:
|
||||
device: right-stick
|
||||
button: BTN_BASE2
|
||||
output:
|
||||
device: primary
|
||||
button: 14
|
||||
- name: R Low Hat Right
|
||||
type: button
|
||||
input:
|
||||
device: right-stick
|
||||
button: BTN_BASE3
|
||||
output:
|
||||
device: primary
|
||||
button: 15
|
||||
- name: R Low Hat Down
|
||||
type: button
|
||||
input:
|
||||
device: right-stick
|
||||
button: BTN_BASE4
|
||||
output:
|
||||
device: primary
|
||||
button: 16
|
||||
- name: R Low Hat Left
|
||||
type: button
|
||||
input:
|
||||
device: right-stick
|
||||
button: BTN_BASE5
|
||||
output:
|
||||
device: primary
|
||||
button: 17
|
||||
|
||||
- name: R Thumb Hat
|
||||
type: button
|
||||
input:
|
||||
device: right-stick
|
||||
button: BTN_TRIGGER_HAPPY9
|
||||
output:
|
||||
device: primary
|
||||
button: 18
|
||||
- name: R Thumb Hat Up
|
||||
type: button
|
||||
input:
|
||||
device: right-stick
|
||||
button: BTN_TRIGGER_HAPPY10
|
||||
output:
|
||||
device: primary
|
||||
button: 19
|
||||
- name: R Thumb Hat Right
|
||||
type: button
|
||||
input:
|
||||
device: right-stick
|
||||
button: BTN_TRIGGER_HAPPY11
|
||||
output:
|
||||
device: primary
|
||||
button: 20
|
||||
- name: R Thumb Hat Down
|
||||
type: button
|
||||
input:
|
||||
device: right-stick
|
||||
button: BTN_TRIGGER_HAPPY12
|
||||
output:
|
||||
device: primary
|
||||
button: 21
|
||||
- name: R Thumb Hat Left
|
||||
type: button
|
||||
input:
|
||||
device: right-stick
|
||||
button: BTN_TRIGGER_HAPPY13
|
||||
output:
|
||||
device: primary
|
||||
button: 22
|
||||
|
||||
- name: R Wheel
|
||||
type: button
|
||||
input:
|
||||
device: right-stick
|
||||
button: BTN_TRIGGER_HAPPY5
|
||||
output:
|
||||
device: primary
|
||||
button: 23
|
||||
- name: R Wheel Stage2
|
||||
type: button
|
||||
input:
|
||||
device: right-stick
|
||||
button: BTN_TRIGGER_HAPPY6
|
||||
output:
|
||||
device: primary
|
||||
button: 24
|
||||
- name: R Wheel Down
|
||||
type: button
|
||||
input:
|
||||
device: right-stick
|
||||
button: BTN_TRIGGER_HAPPY7
|
||||
output:
|
||||
device: primary
|
||||
button: 25
|
||||
- name: R Wheel Up
|
||||
type: button
|
||||
input:
|
||||
device: right-stick
|
||||
button: BTN_TRIGGER_HAPPY8
|
||||
output:
|
||||
device: primary
|
||||
button: 26
|
||||
|
||||
- name: R Thumbstick
|
||||
type: button
|
||||
input:
|
||||
device: right-stick
|
||||
button: BTN_TOP2
|
||||
output:
|
||||
device: primary
|
||||
button: 27
|
||||
|
||||
# Left Stick
|
||||
- name: L Red Button
|
||||
type: button
|
||||
input:
|
||||
device: left-stick
|
||||
button: BTN_BASE6
|
||||
output:
|
||||
device: primary
|
||||
button: 28
|
||||
- name: L Black Button
|
||||
type: button
|
||||
input:
|
||||
device: left-stick
|
||||
button: BTN_PINKIE
|
||||
output:
|
||||
device: primary
|
||||
button: 29
|
||||
- name: L Pinkie Button
|
||||
type: button
|
||||
input:
|
||||
device: left-stick
|
||||
button: BTN_TRIGGER_HAPPY14
|
||||
output:
|
||||
device: primary
|
||||
button: 30
|
||||
|
||||
- name: L Side Button
|
||||
type: button
|
||||
input:
|
||||
device: left-stick
|
||||
button: BTN_TRIGGER_HAPPY2
|
||||
output:
|
||||
device: primary
|
||||
button: 31
|
||||
- name: L Side Up
|
||||
type: button
|
||||
input:
|
||||
device: left-stick
|
||||
button: BTN_TRIGGER_HAPPY3
|
||||
output:
|
||||
device: primary
|
||||
button: 32
|
||||
- name: L Side Down
|
||||
type: button
|
||||
input:
|
||||
device: left-stick
|
||||
button: BTN_TRIGGER_HAPPY4
|
||||
output:
|
||||
device: primary
|
||||
button: 33
|
||||
|
||||
- name: L High Hat
|
||||
type: button
|
||||
input:
|
||||
device: left-stick
|
||||
button: "0x12c"
|
||||
output:
|
||||
device: primary
|
||||
button: 34
|
||||
- name: L High Hat Up
|
||||
type: button
|
||||
input:
|
||||
device: left-stick
|
||||
button: "0x12d"
|
||||
output:
|
||||
device: primary
|
||||
button: 35
|
||||
- name: L High Hat Right
|
||||
type: button
|
||||
input:
|
||||
device: left-stick
|
||||
button: "0x12e"
|
||||
output:
|
||||
device: primary
|
||||
button: 36
|
||||
- name: L High Hat Down
|
||||
type: button
|
||||
input:
|
||||
device: left-stick
|
||||
button: BTN_DEAD
|
||||
output:
|
||||
device: primary
|
||||
button: 37
|
||||
- name: L High Hat Left
|
||||
type: button
|
||||
input:
|
||||
device: left-stick
|
||||
button: BTN_TRIGGER_HAPPY1
|
||||
output:
|
||||
device: primary
|
||||
button: 38
|
||||
|
||||
- name: L Low Hat
|
||||
type: button
|
||||
input:
|
||||
device: left-stick
|
||||
button: BTN_BASE
|
||||
output:
|
||||
device: primary
|
||||
button: 39
|
||||
- name: L Low Hat Up
|
||||
type: button
|
||||
input:
|
||||
device: left-stick
|
||||
button: BTN_BASE2
|
||||
output:
|
||||
device: primary
|
||||
button: 40
|
||||
- name: L Low Hat Right
|
||||
type: button
|
||||
input:
|
||||
device: left-stick
|
||||
button: BTN_BASE3
|
||||
output:
|
||||
device: primary
|
||||
button: 41
|
||||
- name: L Low Hat Down
|
||||
type: button
|
||||
input:
|
||||
device: left-stick
|
||||
button: BTN_BASE4
|
||||
output:
|
||||
device: primary
|
||||
button: 42
|
||||
- name: L Low Hat Left
|
||||
type: button
|
||||
input:
|
||||
device: left-stick
|
||||
button: BTN_BASE5
|
||||
output:
|
||||
device: primary
|
||||
button: 43
|
||||
|
||||
- name: L Thumb Hat
|
||||
type: button
|
||||
input:
|
||||
device: left-stick
|
||||
button: BTN_TRIGGER_HAPPY9
|
||||
output:
|
||||
device: primary
|
||||
button: 44
|
||||
- name: L Thumb Hat Up
|
||||
type: button
|
||||
input:
|
||||
device: left-stick
|
||||
button: BTN_TRIGGER_HAPPY10
|
||||
output:
|
||||
device: primary
|
||||
button: 45
|
||||
- name: L Thumb Hat Right
|
||||
type: button
|
||||
input:
|
||||
device: left-stick
|
||||
button: BTN_TRIGGER_HAPPY11
|
||||
output:
|
||||
device: primary
|
||||
button: 46
|
||||
- name: L Thumb Hat Down
|
||||
type: button
|
||||
input:
|
||||
device: left-stick
|
||||
button: BTN_TRIGGER_HAPPY12
|
||||
output:
|
||||
device: primary
|
||||
button: 47
|
||||
- name: L Thumb Hat Left
|
||||
type: button
|
||||
input:
|
||||
device: left-stick
|
||||
button: BTN_TRIGGER_HAPPY13
|
||||
output:
|
||||
device: primary
|
||||
button: 48
|
||||
|
||||
- name: L Wheel
|
||||
type: button
|
||||
input:
|
||||
device: left-stick
|
||||
button: BTN_TRIGGER_HAPPY5
|
||||
output:
|
||||
device: primary
|
||||
button: 49
|
||||
- name: L Wheel Stage2
|
||||
type: button
|
||||
input:
|
||||
device: left-stick
|
||||
button: BTN_TRIGGER_HAPPY6
|
||||
output:
|
||||
device: primary
|
||||
button: 50
|
||||
- name: L Wheel Down
|
||||
type: button
|
||||
input:
|
||||
device: left-stick
|
||||
button: BTN_TRIGGER_HAPPY7
|
||||
output:
|
||||
device: primary
|
||||
button: 51
|
||||
- name: L Wheel Up
|
||||
type: button
|
||||
input:
|
||||
device: left-stick
|
||||
button: BTN_TRIGGER_HAPPY8
|
||||
output:
|
||||
device: primary
|
||||
button: 52
|
||||
|
||||
- name: L Thumbstick
|
||||
type: button
|
||||
input:
|
||||
device: left-stick
|
||||
button: BTN_TOP2
|
||||
output:
|
||||
device: primary
|
||||
button: 53
|
||||
|
||||
# Button Box
|
||||
- name: BB Power1 On
|
||||
type: button
|
||||
input:
|
||||
device: button-box
|
||||
button: BTN_TRIGGER_HAPPY12
|
||||
output:
|
||||
device: primary
|
||||
button: 54
|
||||
- name: BB Power1 Off
|
||||
type: button
|
||||
input:
|
||||
device: button-box
|
||||
button: BTN_TRIGGER_HAPPY13
|
||||
output:
|
||||
device: primary
|
||||
button: 55
|
||||
- name: BB Power2 On
|
||||
type: button
|
||||
input:
|
||||
device: button-box
|
||||
button: BTN_TRIGGER_HAPPY10
|
||||
output:
|
||||
device: primary
|
||||
button: 56
|
||||
- name: BB Power2 Off
|
||||
type: button
|
||||
input:
|
||||
device: button-box
|
||||
button: BTN_TRIGGER_HAPPY11
|
||||
output:
|
||||
device: primary
|
||||
button: 57
|
||||
- name: BB Power3 On
|
||||
type: button
|
||||
input:
|
||||
device: button-box
|
||||
button: BTN_TRIGGER_HAPPY8
|
||||
output:
|
||||
device: primary
|
||||
button: 58
|
||||
- name: BB Power3 Off
|
||||
type: button
|
||||
input:
|
||||
device: button-box
|
||||
button: BTN_TRIGGER_HAPPY9
|
||||
output:
|
||||
device: primary
|
||||
button: 59
|
||||
- name: BB Power4 On
|
||||
type: button
|
||||
input:
|
||||
device: button-box
|
||||
button: BTN_TRIGGER_HAPPY6
|
||||
output:
|
||||
device: primary
|
||||
button: 60
|
||||
- name: BB Power4 Off
|
||||
type: button
|
||||
input:
|
||||
device: button-box
|
||||
button: BTN_TRIGGER_HAPPY7
|
||||
output:
|
||||
device: primary
|
||||
button: 61
|
||||
|
||||
|
||||
- name: BB Top Row1
|
||||
type: button
|
||||
input:
|
||||
device: button-box
|
||||
button: BTN_TRIGGER_HAPPY3
|
||||
output:
|
||||
device: primary
|
||||
button: 62
|
||||
- name: BB Top Row2
|
||||
type: button
|
||||
input:
|
||||
device: button-box
|
||||
button: BTN_TRIGGER_HAPPY4
|
||||
output:
|
||||
device: primary
|
||||
button: 63
|
||||
- name: BB Top Row3
|
||||
type: button
|
||||
input:
|
||||
device: button-box
|
||||
button: BTN_TRIGGER_HAPPY2
|
||||
output:
|
||||
device: primary
|
||||
button: 64
|
||||
|
||||
- name: BB Side1
|
||||
type: button
|
||||
input:
|
||||
device: button-box
|
||||
button: BTN_TRIGGER_HAPPY1
|
||||
output:
|
||||
device: primary
|
||||
button: 65
|
||||
- name: BB Side2
|
||||
type: button
|
||||
input:
|
||||
device: button-box
|
||||
button: "0x12e"
|
||||
output:
|
||||
device: primary
|
||||
button: 66
|
||||
- name: BB Side3
|
||||
type: button
|
||||
input:
|
||||
device: button-box
|
||||
button: "0x12d"
|
||||
output:
|
||||
device: primary
|
||||
button: 67
|
||||
|
||||
- name: BB Toggle1
|
||||
type: button
|
||||
input:
|
||||
device: button-box
|
||||
button: BTN_BASE3
|
||||
output:
|
||||
device: primary
|
||||
button: 68
|
||||
- name: BB Toggle2 On
|
||||
type: button
|
||||
input:
|
||||
device: button-box
|
||||
button: BTN_BASE6
|
||||
output:
|
||||
device: primary
|
||||
button: 69
|
||||
- name: BB Toggle2 Off
|
||||
type: button
|
||||
input:
|
||||
device: button-box
|
||||
button: "0x12c"
|
||||
output:
|
||||
device: primary
|
||||
button: 70
|
||||
- name: BB Toggle3 On
|
||||
type: button
|
||||
input:
|
||||
device: button-box
|
||||
button: BTN_BASE4
|
||||
output:
|
||||
device: primary
|
||||
button: 71
|
||||
- name: BB Toggle3 Off
|
||||
type: button
|
||||
input:
|
||||
device: button-box
|
||||
button: BTN_BASE5
|
||||
output:
|
||||
device: primary
|
||||
button: 72
|
||||
|
||||
- name: BB Middle Row1
|
||||
type: button
|
||||
input:
|
||||
device: button-box
|
||||
button: BTN_BASE
|
||||
output:
|
||||
device: secondary
|
||||
button: 0
|
||||
- name: BB Middle Row2
|
||||
type: button
|
||||
input:
|
||||
device: button-box
|
||||
button: BTN_PINKIE
|
||||
output:
|
||||
device: secondary
|
||||
button: 1
|
||||
- name: BB Middle Row3
|
||||
type: button
|
||||
input:
|
||||
device: button-box
|
||||
button: BTN_TOP2
|
||||
output:
|
||||
device: secondary
|
||||
button: 2
|
||||
|
||||
- name: BB Bottom Row1
|
||||
type: button
|
||||
input:
|
||||
device: button-box
|
||||
button: BTN_DEAD
|
||||
output:
|
||||
device: secondary
|
||||
button: 3
|
||||
- name: BB Bottom Row2
|
||||
type: button
|
||||
input:
|
||||
device: button-box
|
||||
button: BTN_TRIGGER_HAPPY5
|
||||
output:
|
||||
device: secondary
|
||||
button: 4
|
||||
- name: BB Bottom Row3
|
||||
type: button
|
||||
input:
|
||||
device: button-box
|
||||
button: BTN_TRIGGER_HAPPY14
|
||||
output:
|
||||
device: secondary
|
||||
button: 5
|
||||
|
||||
- name: BB Dial1 Right
|
||||
type: button
|
||||
input:
|
||||
device: button-box
|
||||
button: BTN_THUMB2
|
||||
output:
|
||||
device: secondary
|
||||
button: 6
|
||||
- name: BB Dial1 Left
|
||||
type: button
|
||||
input:
|
||||
device: button-box
|
||||
button: BTN_TOP
|
||||
output:
|
||||
device: secondary
|
||||
button: 7
|
||||
- name: BB Dial2 Right
|
||||
type: button
|
||||
input:
|
||||
device: button-box
|
||||
button: BTN_TRIGGER
|
||||
- name: Trigger2
|
||||
type: combo
|
||||
inputs:
|
||||
- device: left-stick
|
||||
button: BTN_THUMB
|
||||
- device: left-stick
|
||||
button: BTN_THUMB2
|
||||
output:
|
||||
device: main
|
||||
button: BTN_THUMB
|
||||
device: secondary
|
||||
button: 8
|
||||
- name: BB Dial2 Left
|
||||
type: button
|
||||
input:
|
||||
device: button-box
|
||||
button: BTN_THUMB
|
||||
output:
|
||||
device: secondary
|
||||
button: 9
|
||||
|
|
|
@ -1,8 +1,18 @@
|
|||
devices:
|
||||
- name: main
|
||||
- name: primary
|
||||
type: virtual
|
||||
buttons: 56
|
||||
axes: 8
|
||||
num_buttons: 74
|
||||
num_axes: 8
|
||||
- name: secondary
|
||||
type: virtual
|
||||
num_buttons: 74
|
||||
num_axes: 2
|
||||
- name: mouse
|
||||
type: virtual
|
||||
num_buttons: 0
|
||||
num_axes: 0
|
||||
rel_axes:
|
||||
- REL_WHEEL
|
||||
- name: right-stick
|
||||
type: physical
|
||||
device_name: VIRPIL Controls 20220407 R-VPC Stick MT-50CM2
|
||||
|
@ -14,4 +24,4 @@ devices:
|
|||
device_name: "CH PRODUCTS CH PRO PEDALS USB "
|
||||
- name: button-box
|
||||
type: physical
|
||||
device_name: Arduino Arduino Joystick
|
||||
device_name: Arduino Arduino Joystick
|
||||
|
|
3
docs/examples/multiple_files/modes.yml
Normal file
3
docs/examples/multiple_files/modes.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
modes:
|
||||
- main
|
||||
- mining
|
|
@ -1,7 +1,7 @@
|
|||
## multi-file configuration example
|
||||
|
||||
This directory demonstrates how to split your configuration across multiple files.
|
||||
Note that we re-define the top-level `rules` element; this is by design.
|
||||
Note that we re-define the top-level `rules` element in two different files; this is by design.
|
||||
|
||||
It also serves as a real-world example demonstrating many of the available features of the system.
|
||||
It is based on the author's actual mappings for Star Citizen.
|
||||
It is copied from the author's actual mappings for Star Citizen.
|
|
@ -5,16 +5,15 @@ devices:
|
|||
device_name: Flightstick Name From evlist
|
||||
- name: main
|
||||
type: virtual
|
||||
axes: 8
|
||||
buttons: 80
|
||||
num_axes: 8
|
||||
num_buttons: 80
|
||||
- name: mouse
|
||||
type: virtual
|
||||
axes: 0
|
||||
buttons: 0
|
||||
relative_axes:
|
||||
- REL_WHEEL
|
||||
|
||||
rules:
|
||||
# Straightforward axis mapping
|
||||
- type: axis
|
||||
input:
|
||||
device: flightstick
|
||||
|
@ -58,6 +57,7 @@ rules:
|
|||
device: main
|
||||
button: BTN_BASE3
|
||||
|
||||
# The specified axis will output button presses, and repeat them faster the more the axis is engaged.
|
||||
- type: axis-to-button
|
||||
# The repeat rates look backwards because they are the time between repeats in milliseconds.
|
||||
# So this example will produce a button press every second at the axis' minimum value,
|
||||
|
@ -73,10 +73,12 @@ rules:
|
|||
device: main
|
||||
button: BTN_BASE4
|
||||
|
||||
# The specified axis will output "relative" axis events, commonly used in mice. This example
|
||||
# simulates a mouse scrollwheel, though only in one direction.
|
||||
- type: axis-to-relaxis
|
||||
repeat_rate_min: 100
|
||||
repeat_rate_max: 10
|
||||
# This is the value to write for the axis for each repetition. If you wanted to scroll the other
|
||||
# This is the value to emit for the axis on each repetition. If you wanted to scroll the other
|
||||
# direction, use a negative value. It is useful to use 2 rules on the same input axis with
|
||||
# "overlapping" deadzones to scroll a mousewheel in both directions.
|
||||
increment: 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue