Jypeli
5
The simple game programming library
Key.cs
Siirry tämän tiedoston dokumentaatioon.
1
#region MIT License
2
/*
3
* Copyright (c) 2009 University of Jyväskylä, Department of Mathematical
4
* Information Technology.
5
*
6
* Permission is hereby granted, free of charge, to any person obtaining a copy
7
* of this software and associated documentation files (the "Software"), to deal
8
* in the Software without restriction, including without limitation the rights
9
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
* copies of the Software, and to permit persons to whom the Software is
11
* furnished to do so, subject to the following conditions:
12
*
13
* The above copyright notice and this permission notice shall be included in
14
* all copies or substantial portions of the Software.
15
*
16
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
* THE SOFTWARE.
23
*/
24
#endregion
25
26
/*
27
* Authors: Tero Jäntti, Tomi Karppinen, Janne Nikkanen.
28
*/
29
30
using
Microsoft.Xna.Framework.Input;
31
32
namespace
Jypeli
33
{
37
public
enum
Key
38
{
39
None
= Keys.None,
40
Back
= Keys.Back,
41
Tab
= Keys.Tab,
42
Enter
= Keys.Enter,
43
Pause
= Keys.Pause,
44
CapsLock
= Keys.CapsLock,
45
Escape
= Keys.Escape,
46
Space
= Keys.Space,
47
PageUp
= Keys.PageUp,
48
PageDown
= Keys.PageDown,
49
End
= Keys.End,
50
Home
= Keys.Home,
51
Left
= Keys.Left,
52
Up
= Keys.Up,
53
Right
= Keys.Right,
54
Down
= Keys.Down,
55
PrintScreen
= Keys.PrintScreen,
56
Insert
= Keys.Insert,
57
Delete
= Keys.Delete,
58
D0
= Keys.D0,
59
D1
= Keys.D1,
60
D2
= Keys.D2,
61
D3
= Keys.D3,
62
D4
= Keys.D4,
63
D5
= Keys.D5,
64
D6
= Keys.D6,
65
D7
= Keys.D7,
66
D8
= Keys.D8,
67
D9
= Keys.D9,
68
A
= Keys.A,
69
B
= Keys.B,
70
C
= Keys.C,
71
D
= Keys.D,
72
E
= Keys.E,
73
F
= Keys.F,
74
G
= Keys.G,
75
H
= Keys.H,
76
I
= Keys.I,
77
J
= Keys.J,
78
K
= Keys.K,
79
L
= Keys.L,
80
M
= Keys.M,
81
N
= Keys.N,
82
O
= Keys.O,
83
P
= Keys.P,
84
Q
= Keys.Q,
85
R
= Keys.R,
86
S
= Keys.S,
87
T
= Keys.T,
88
U
= Keys.U,
89
V
= Keys.V,
90
W
= Keys.W,
91
X
= Keys.X,
92
Y
= Keys.Y,
93
Z
= Keys.Z,
94
NumPad0
= Keys.NumPad0,
95
NumPad1
= Keys.NumPad1,
96
NumPad2
= Keys.NumPad2,
97
NumPad3
= Keys.NumPad3,
98
NumPad4
= Keys.NumPad4,
99
NumPad5
= Keys.NumPad5,
100
NumPad6
= Keys.NumPad6,
101
NumPad7
= Keys.NumPad7,
102
NumPad8
= Keys.NumPad8,
103
NumPad9
= Keys.NumPad9,
104
Multiply
= Keys.Multiply,
105
Add
= Keys.Add,
106
Separator
= Keys.Separator,
107
Subtract
= Keys.Subtract,
108
Decimal
= Keys.Decimal,
109
Divide
= Keys.Divide,
110
F1
= Keys.F1,
111
F2
= Keys.F2,
112
F3
= Keys.F3,
113
F4
= Keys.F4,
114
F5
= Keys.F5,
115
F6
= Keys.F6,
116
F7
= Keys.F7,
117
F8
= Keys.F8,
118
F9
= Keys.F9,
119
F10
= Keys.F10,
120
F11
= Keys.F11,
121
F12
= Keys.F12,
122
F13
= Keys.F13,
123
F14
= Keys.F14,
124
F15
= Keys.F15,
125
F16
= Keys.F16,
126
F17
= Keys.F17,
127
F18
= Keys.F18,
128
F19
= Keys.F19,
129
F20
= Keys.F20,
130
F21
= Keys.F21,
131
F22
= Keys.F22,
132
F23
= Keys.F23,
133
F24
= Keys.F24,
134
NumLock
= Keys.NumLock,
135
Scroll
= Keys.Scroll,
136
LeftShift
= Keys.LeftShift,
137
RightShift
= Keys.RightShift,
138
LeftControl
= Keys.LeftControl,
139
RightControl
= Keys.RightControl,
140
LeftAlt
= Keys.LeftAlt,
141
RightAlt
= Keys.RightAlt,
142
OemTilde
= Keys.OemTilde,
143
OemQuotes
= Keys.OemQuotes,
144
Aring
= Keys.OemCloseBrackets,
145
Ouml
= Keys.OemTilde,
146
Auml
= Keys.OemQuotes,
147
OemPlus
= Keys.OemPlus,
148
LessOrGreater
= Keys.OemBackslash,
149
Period
= Keys.OemPeriod,
150
Comma
= Keys.OemComma,
151
}
152
}
Jypeli.Key.Tab
Jypeli.Key.H
Jypeli.Key.D4
Jypeli.Key.F15
Jypeli.Key.Escape
Jypeli.Key.D3
Jypeli.Key.F8
Jypeli.Key.F11
Jypeli.Key.F2
Jypeli.Key.Decimal
Jypeli.Key.R
Jypeli.Key.F14
Jypeli.ButtonState.Up
Nappi on ylhäällä.
Jypeli.Button.Y
Jypeli.Key.NumLock
Jypeli.Key.D9
Jypeli.Key.D5
Jypeli.Key.LeftAlt
Jypeli.Key.Ouml
Jypeli.Key.F4
Jypeli.Key.D2
Jypeli.Button.X
Jypeli.ButtonState.Down
Nappi on alhaalla.
Jypeli.Key.F19
Jypeli.Key.NumPad9
Jypeli.Key.Q
Jypeli.Key.Aring
Jypeli.Key.CapsLock
Jypeli.Key.OemQuotes
Jypeli.Key.C
Jypeli.Key.Right
Jypeli.Key.LessOrGreater
Jypeli.Key.F13
Jypeli.Button.A
Jypeli.Key.K
Jypeli.Key.Auml
Jypeli.Key.F22
Jypeli.Key.PageDown
Jypeli.Key.F24
Jypeli.Key.D1
Jypeli.Key.Left
Jypeli.Key.LeftControl
Jypeli.Key.F16
Jypeli.Key.F21
Jypeli.Key.NumPad1
Jypeli.Key.Divide
Jypeli.Key.F9
Jypeli
Jypeli.Key.F12
Jypeli.Key.RightAlt
Jypeli.Key.N
Jypeli.Key.J
Jypeli.Key.F
Jypeli.Key.F5
Jypeli.Key.Z
Jypeli.Key.PrintScreen
Jypeli.Key.NumPad6
Jypeli.Key.None
Jypeli.Key.F23
Jypeli.Key.F3
Jypeli.Key.F1
Jypeli.Key.Enter
Jypeli.Key.NumPad5
Jypeli.Key.Scroll
Jypeli.Key.NumPad3
Jypeli.Key.NumPad8
Jypeli.Key.T
Jypeli.Key.L
Jypeli.Key.RightShift
Jypeli.Key.NumPad2
Jypeli.Key.Separator
Jypeli.Key.D0
Jypeli.Key.RightControl
Jypeli.Key.Pause
Jypeli.Key.Space
Jypeli.Key.Add
Jypeli.Key.OemTilde
Jypeli.Key.Insert
Jypeli.Key.D6
Jypeli.Key.E
Jypeli.Key.P
Jypeli.Key.LeftShift
Jypeli.Key.Subtract
Jypeli.Key.F6
Jypeli.Key.S
Jypeli.Button.Back
Back.
Jypeli.Key.U
Jypeli.Key.F17
Jypeli.Key.O
Jypeli.Key.F18
Jypeli.Key
Key
Näppäimistön näppäin.
Definition:
Key.cs:37
Jypeli.Key.NumPad4
Jypeli.Key.D7
Jypeli.Key.F10
Jypeli.Key.W
Jypeli.Key.Home
Jypeli.Key.D8
Jypeli.Key.V
Jypeli.Key.NumPad0
Jypeli.Key.Period
Jypeli.Key.G
Jypeli.Key.Multiply
Jypeli.Key.F7
Jypeli.Key.OemPlus
Jypeli.Key.End
Jypeli.Key.F20
Jypeli.Key.M
Jypeli.Key.Delete
Jypeli.Key.Comma
Jypeli.Key.I
Jypeli.Key.D
Jypeli.Button.B
Jypeli.Key.NumPad7
Jypeli.Key.PageUp
Jypeli
Controls
Key.cs
Generoinut projektille Jypeli Fri Sep 15 2017 21:57:24
1.8.13