1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-11-25 15:20:10 +00:00
msfs-popout-panel-manager/ArduinoAgent/ArduinoInputData.cs
2022-07-23 15:23:32 -04:00

62 lines
1.1 KiB
C#

using System;
namespace MSFSPopoutPanelManager.ArduinoAgent
{
public class ArduinoInputData
{
public ArduinoInputData(string inputName, string inputAction, int acceleration)
{
InputName = (InputName)Enum.Parse(typeof(InputName), inputName);
InputAction = (InputAction)Enum.Parse(typeof(InputAction), inputAction);
Acceleration = acceleration;
}
public InputName InputName { get; set; }
public InputAction InputAction { get; set; }
public int Acceleration { get; set; }
}
public enum InputAction
{
NONE,
// Rotary Encoder
CW,
CCW,
SW,
// Joystick
UP,
DOWN,
LEFT,
RIGHT,
// Keypad
Key1,
Key2,
Key3,
Key4,
Key5,
Key6,
Key7,
Key8,
Key9,
Key0,
KeyA,
KeyB,
KeyC,
KeyD,
KeyAsterisk,
KeyPound
}
public enum InputName
{
EncoderLower,
EncoderUpper,
Joystick,
Keypad
}
}