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 3
3
<metadata >
4
4
<id >$id$</id >
5
5
<version >$version$</version >
6
- <title >InputStateManager </title >
6
+ <title >$title$ </title >
7
7
<authors >Unterrainer Informatik OG Team</authors >
8
8
<owners >Public Domain</owners >
9
9
<licenseUrl >http://unlicense.org</licenseUrl >
Original file line number Diff line number Diff line change 20
20
[ assembly: ComVisible ( false ) ]
21
21
22
22
// 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 " ) ]
24
24
25
25
// Version information for an assembly consists of the following four values:
26
26
//
Original file line number Diff line number Diff line change @@ -40,7 +40,11 @@ Currently it provides convenience-methods in a fluent manner for:
40
40
### Setup
41
41
42
42
``` 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 ();
44
48
.. .
45
49
46
50
/// <summary >
@@ -52,6 +56,7 @@ protected override void Update(GameTime gameTime)
52
56
{
53
57
if (input .Pad .Is .Press (Buttons .Back ) || input .Key .Is .Press (Keys .Escape ))
54
58
Exit ();
59
+ // Update the manager so that it can record changes:
55
60
input .Update ();
56
61
base .Update (gameTime );
57
62
}
Original file line number Diff line number Diff line change 1
- nuget pack -sym InputStateManager\Inputs .csproj
1
+ nuget pack -sym InputStateManager\InputStateManager .csproj
2
2
rem When targeting release-builds, add: -Prop Configuration=Release
You can’t perform that action at this time.
0 commit comments