Skip to content

Instantly share code, notes, and snippets.

@IslandJohn
IslandJohn / buttons.svg
Last active October 4, 2020 20:52
Stream Deck buttons SVG for Microsoft Flight Simulator. https://fonts.google.com/specimen/Roboto and https://unicodepowersymbol.com/ are dependencies.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@IslandJohn
IslandJohn / toggle_1x1_2pos.py
Created August 10, 2020 02:40
Joystick Gremlin plugin to remap the OFF/ON states of a physical toggle switch to 2 virtual buttons, simulating an ON/ON toggle switch.
import gremlin
from gremlin.user_plugin import *
mode = ModeVariable(
"Mode",
"The mode to use for this instance"
)
joy_1 = PhysicalInputVariable(
"Physical ON",
@IslandJohn
IslandJohn / encoder_push.py
Last active November 15, 2020 14:54
Joystick Gremlin plugin to remap, and optionally decode, physical encoder directions to two sets of accelerated, simulated by multiple presses, virtual directions differentiated by a push button modifier.
import gremlin
import threading
import time
from gremlin.user_plugin import *
mode = ModeVariable(
"Mode",
"The mode to use for this instance"
)
@IslandJohn
IslandJohn / encoder.py
Last active May 17, 2022 02:27
Joystick Gremlin plugin to remap, and optionally decode, physical encoder directions to accelerated, simulated by multiple presses, virtual directions.
import gremlin
import threading
import time
from gremlin.user_plugin import *
mode = ModeVariable(
"Mode",
"The mode to use for this instance"
)
@IslandJohn
IslandJohn / push.py
Last active November 15, 2020 14:54
Joystick Gremlin plugin to remap the short and long press of a physical push button to two virtual buttons.
import gremlin
import threading
import time
from gremlin.user_plugin import *
mode = ModeVariable(
"Mode",
"The mode to use for this instance"
)
@IslandJohn
IslandJohn / toggle_1x2_3pos.py
Last active December 24, 2022 14:43
Joystick Gremlin plugin to remap the OFF/ON/ON states of a physical toggle switch to 3 virtual buttons, simulating an ON/ON/ON toggle switch.
import gremlin
from gremlin.user_plugin import *
mode = ModeVariable(
"Mode",
"The mode to use for this instance"
)
joy_1 = PhysicalInputVariable(
"Physical ON 1",

Keybase proof

I hereby claim:

  • I am islandjohn on github.
  • I am jszatmary (https://keybase.io/jszatmary) on keybase.
  • I have a public key ASDE4hak_urhvzQG0ugkhOHuvbGBFBoG6ewu2o227YKx_Qo

To claim this, I am signing this object: