Skip to content

Instantly share code, notes, and snippets.

@WhiteMagic
Created August 13, 2016 13:49
Show Gist options
  • Save WhiteMagic/964a6ad0d7df7c0ed521227783bf0138 to your computer and use it in GitHub Desktop.
Save WhiteMagic/964a6ad0d7df7c0ed521227783bf0138 to your computer and use it in GitHub Desktop.
import gremlin
t16000 = gremlin.input_devices.JoystickDecorator(
"T.16000M",
1325664945,
"Default"
)
@t16000.axis(1)
def split_xaxis(event, vjoy):
if event.value >= 0.0:
vjoy[1].axis(4).value = -1.0 + event.value * 2.0
else:
vjoy[1].axis(5).value = -1.0 + -event.value * 2.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment