33 lines
1.3 KiB
C#
33 lines
1.3 KiB
C#
namespace Common
|
|
{
|
|
public static class InputHelperss
|
|
{
|
|
public enum Button
|
|
{
|
|
None = 0,
|
|
MenuButton = 1,//菜单键
|
|
Trigger = 2,//扳机键
|
|
Grip = 3,//抓取键
|
|
TriggerButton = 4,//扳机键
|
|
TriggerPressed = 4,//扳机键
|
|
GripButton = 5,//抓取键
|
|
GripPressed = 5,//抓取键
|
|
PrimaryButton = 6,//右手A键按下 或 左手X键按下
|
|
PrimaryTouch = 7,//右手A键触摸 或 左手X键触摸
|
|
SecondaryButton = 8,//右手B键按下 或 左手Y键按下
|
|
SecondaryTouch = 9,//右手B键触摸 或 左手Y键触摸
|
|
Primary2DAxisTouch = 10,//右手摇杆触摸
|
|
Primary2DAxisClick = 11,//右手摇杆Click
|
|
Secondary2DAxisTouch = 12,//左手摇杆触摸
|
|
Secondary2DAxisClick = 13,//左手摇杆Click
|
|
PrimaryAxis2DUp = 14,//右手摇杆向上
|
|
PrimaryAxis2DDown = 15,//右手摇杆向下
|
|
PrimaryAxis2DLeft = 16,//右手摇杆向左
|
|
PrimaryAxis2DRight = 17,//右手摇杆向右
|
|
SecondaryAxis2DUp = 18,//左手摇杆向上
|
|
SecondaryAxis2DDown = 19,//左手摇杆向下
|
|
SecondaryAxis2DLeft = 20,//左手摇杆向左
|
|
SecondaryAxis2DRight = 21//左手摇杆向右
|
|
}
|
|
}
|
|
} |