1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-11-22 13:50:14 +00:00
msfs-popout-panel-manager/ArduinoAgent/ArduinoInputData.cs

63 lines
1.1 KiB
C#
Raw Normal View History

2022-07-23 19:23:32 +00:00
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
}
}