File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed
Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 33 <metadata >
44 <id >$id$</id >
55 <version >$version$</version >
6- <title >InputStateManager </title >
6+ <title >$title$ </title >
77 <authors >Unterrainer Informatik OG Team</authors >
88 <owners >Public Domain</owners >
99 <licenseUrl >http://unlicense.org</licenseUrl >
Original file line number Diff line number Diff line change 2020[ assembly: ComVisible ( false ) ]
2121
2222// The following GUID is for the ID of the typelib if this project is exposed to COM
23- [ assembly: Guid ( "48d4510a-1d34-4f2f-b8d1-72617109b28f " ) ]
23+ [ assembly: Guid ( "0c4c545b-94c2-4ad2-8cf2-be659dd85b10 " ) ]
2424
2525// Version information for an assembly consists of the following four values:
2626//
Original file line number Diff line number Diff line change @@ -40,7 +40,11 @@ Currently it provides convenience-methods in a fluent manner for:
4040### Setup
4141
4242``` c#
43- private readonly InputStateManager input = new InputStateManager ();
43+ // Due to a naming-clash you'll need the following line in your imports:
44+ using Mouse = InputStateManager .Inputs .Mouse ;
45+
46+ // Now lets create a manager for our inputs:
47+ private readonly InputManager input = new InputManager ();
4448.. .
4549
4650/// <summary >
@@ -52,6 +56,7 @@ protected override void Update(GameTime gameTime)
5256{
5357 if (input .Pad .Is .Press (Buttons .Back ) || input .Key .Is .Press (Keys .Escape ))
5458 Exit ();
59+ // Update the manager so that it can record changes:
5560 input .Update ();
5661 base .Update (gameTime );
5762}
Original file line number Diff line number Diff line change 1- nuget pack -sym InputStateManager\Inputs .csproj
1+ nuget pack -sym InputStateManager\InputStateManager .csproj
22rem When targeting release-builds, add: -Prop Configuration=Release
You can’t perform that action at this time.
0 commit comments