17.01.2021
+ WPF-Support + Game Controller System + GameKeybind System + SM_WPF_TEST
This commit is contained in:
parent
af90d617d3
commit
6f23a80f7f
60 changed files with 1536 additions and 143 deletions
21
SMOptionals/SM.Game/Controls/GameControllerStateThumbs.cs
Normal file
21
SMOptionals/SM.Game/Controls/GameControllerStateThumbs.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
using OpenTK;
|
||||
|
||||
namespace SM.Game.Controls
|
||||
{
|
||||
public struct GameControllerStateThumbs
|
||||
{
|
||||
public static GameControllerStateThumbs Default = new GameControllerStateThumbs()
|
||||
{Left = Vector2.Zero, Right = Vector2.Zero};
|
||||
|
||||
public Vector2 Left;
|
||||
public Vector2 Right;
|
||||
|
||||
public bool PressedLeft;
|
||||
public bool PressedRight;
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return $"Left: ({Left.X}; {Left.Y}){(PressedLeft ? " Pressed" : "")}; Right: ({Right.X}; {Right.Y}){(PressedRight ? " Pressed" : "")}";
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue