Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Remappers for Toggle Switches #199

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

btodoroff
Copy link

Add three new remappers to support toggle switches.

Add a remapper SwitchToButtons that creates a different momentary button press when a toggle switch is moved to a new possiton. This is used to allow a two possition toggle switch to map to game controls that have a seperate button for each in game switch position. (i.e. "Landing Gear Up" and "Landing Gear Down")

Add a remapper SwitchToToggle that creates a momentary press of the same button each time a toggle switch is moved to a new possition. This is to allow a two position toggle switch to map to game controls that only have a single key to toggle a switch. (i.e. "Toggle Landing Lights"). This will also only create one button press if the switch is flipped back and forth quickly so that if game and physical switch are out of sync (one on and other is off) a quick flip back and forth will put them back in sync.

Add a remapper "Switch3WayToButtons" that creates a different momentary button press when an ON-OFF-ON toggle switch is moved to a each possiton. This is used to allow a three possition ON-OFF-ON toggle switch connected to two buttons to map to game controls that have a seperate button for each of three in game switch position. (i.e. "Headlights Off" and "Headlights On" and "Headlight High Beam")

Add three new remappers to support toggle switches.

Add a remapper SwitchToButtons that creates a different momentary button press when a toggle switch is moved to a new possiton.  This is used to allow a two possition toggle switch to map to game controls that have a seperate button for each in game switch position.  (i.e. "Landing Gear Up" and "Landing Gear Down")

Add a remapper SwitchToToggle that creates a momentary press of the same button each time a toggle switch is moved to a new possition.  This is to allow a two position toggle switch to map to game controls that only have a single key to toggle a switch. (i.e. "Toggle Landing Lights").  This will also only create one button press if the switch is flipped back and forth quickly so that if game and physical switch are out of sync (one on and other is off) a quick flip back and forth will put them back in sync.

Add a remapper "Switch3WayToButtons" that creates a different momentary button press when an ON-OFF-ON toggle switch is moved to a each possiton.  This is used to allow a three possition ON-OFF-ON toggle switch connected to two buttons to map to game controls that have a seperate button for each of three in game switch position.  (i.e. "Headlights Off" and "Headlights On" and "Headlight High Beam")
Add line to cover the additon of the Toggle Switch Remappers
@btodoroff
Copy link
Author

Would appreciate any pointers on how to debug the appveyor failures. Doesn't look like anything todo with my code, but not sure if I needed to do additional changes somewhere for the added source files. -Thanks!

Copy link
Collaborator

@evilC evilC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks for your contribution!

@evilC
Copy link
Collaborator

evilC commented Oct 28, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants