This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
import gremlin | |
from gremlin.user_plugin import * | |
pa_x = PhysicalInputVariable( | |
"Physical X Axis", | |
"Physical X axis input", | |
[gremlin.common.InputType.JoystickAxis] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gremlin | |
from gremlin.user_plugin import * | |
# User configurable variables | |
mode = ModeVariable( | |
"Mode", | |
"The mode to use for this mapping" | |
) | |
rudder_axis = PhysicalInputVariable( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
import time | |
import gremlin | |
from gremlin.user_plugin import * | |
mode = ModeVariable("Mode", "The mode in which to use this mapping") | |
axis = PhysicalInputVariable( | |
"Input axis", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
import time | |
import gremlin | |
# Last time the dial was "pressed" | |
g_last_activation = 0 | |
# How often since last reset the dial was "pressed" | |
g_activation_count = 0 | |
# Time window within the activation has to happen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
import gremlin | |
# Define all used devices | |
mt50_l= gremlin.input_devices.JoystickDecorator( | |
"MT50=DT_L", | |
gremlin.common.DeviceIdentifier(65740868, 1) | |
"Default" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gremlin | |
from vjoy.vjoy import AxisName | |
hog = gremlin.input_devices.JoystickDecorator( | |
"Joystick - HOTAS Warthog", | |
gremlin.common.DeviceIdentifier(72287234, 1), | |
"Default" | |
) | |
# Sensitivity curve setup and deadzone |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gremlin | |
from vjoy.vjoy import AxisName | |
hog = gremlin.input_devices.JoystickDecorator( | |
"Joystick - HOTAS Warthog", | |
72287234, | |
"Default" | |
) | |
# Sensitivity curve setup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gremlin | |
import math | |
device = gremlin.input_devices.JoystickDecorator( | |
"T.16000M", | |
72331530, | |
"Default" | |
) | |
# Physical axis settings |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gremlin | |
# ---------- Edit between here ----------------------------- | |
# Definition of the first device | |
device_1 = gremlin.input_devices.JoystickDecorator( | |
"Joystick - HOTAS Warthog", | |
gremlin.common.DeviceIdentifier((72287234, 1) | |
"Default" |