Jypeli 10
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
30using Microsoft.Xna.Framework.Input;
31
32namespace Jypeli
33{
34#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
38 public enum Key
39 {
40 None = Keys.None,
41 Back = Keys.Back,
42 Tab = Keys.Tab,
43 Enter = Keys.Enter,
44 Pause = Keys.Pause,
45 CapsLock = Keys.CapsLock,
46 Escape = Keys.Escape,
47 Space = Keys.Space,
48 PageUp = Keys.PageUp,
49 PageDown = Keys.PageDown,
50 End = Keys.End,
51 Home = Keys.Home,
52 Left = Keys.Left,
53 Up = Keys.Up,
54 Right = Keys.Right,
55 Down = Keys.Down,
56 PrintScreen = Keys.PrintScreen,
57 Insert = Keys.Insert,
58 Delete = Keys.Delete,
59 D0 = Keys.D0,
60 D1 = Keys.D1,
61 D2 = Keys.D2,
62 D3 = Keys.D3,
63 D4 = Keys.D4,
64 D5 = Keys.D5,
65 D6 = Keys.D6,
66 D7 = Keys.D7,
67 D8 = Keys.D8,
68 D9 = Keys.D9,
69 A = Keys.A,
70 B = Keys.B,
71 C = Keys.C,
72 D = Keys.D,
73 E = Keys.E,
74 F = Keys.F,
75 G = Keys.G,
76 H = Keys.H,
77 I = Keys.I,
78 J = Keys.J,
79 K = Keys.K,
80 L = Keys.L,
81 M = Keys.M,
82 N = Keys.N,
83 O = Keys.O,
84 P = Keys.P,
85 Q = Keys.Q,
86 R = Keys.R,
87 S = Keys.S,
88 T = Keys.T,
89 U = Keys.U,
90 V = Keys.V,
91 W = Keys.W,
92 X = Keys.X,
93 Y = Keys.Y,
94 Z = Keys.Z,
95 NumPad0 = Keys.NumPad0,
96 NumPad1 = Keys.NumPad1,
97 NumPad2 = Keys.NumPad2,
98 NumPad3 = Keys.NumPad3,
99 NumPad4 = Keys.NumPad4,
100 NumPad5 = Keys.NumPad5,
101 NumPad6 = Keys.NumPad6,
102 NumPad7 = Keys.NumPad7,
103 NumPad8 = Keys.NumPad8,
104 NumPad9 = Keys.NumPad9,
105 Multiply = Keys.Multiply,
106 Add = Keys.Add,
107 Separator = Keys.Separator,
108 Subtract = Keys.Subtract,
109 Decimal = Keys.Decimal,
110 Divide = Keys.Divide,
111 F1 = Keys.F1,
112 F2 = Keys.F2,
113 F3 = Keys.F3,
114 F4 = Keys.F4,
115 F5 = Keys.F5,
116 F6 = Keys.F6,
117 F7 = Keys.F7,
118 F8 = Keys.F8,
119 F9 = Keys.F9,
120 F10 = Keys.F10,
121 F11 = Keys.F11,
122 F12 = Keys.F12,
123 F13 = Keys.F13,
124 F14 = Keys.F14,
125 F15 = Keys.F15,
126 F16 = Keys.F16,
127 F17 = Keys.F17,
128 F18 = Keys.F18,
129 F19 = Keys.F19,
130 F20 = Keys.F20,
131 F21 = Keys.F21,
132 F22 = Keys.F22,
133 F23 = Keys.F23,
134 F24 = Keys.F24,
135 NumLock = Keys.NumLock,
136 Scroll = Keys.Scroll,
137 LeftShift = Keys.LeftShift,
138 RightShift = Keys.RightShift,
139 LeftControl = Keys.LeftControl,
140 RightControl = Keys.RightControl,
141 LeftAlt = Keys.LeftAlt,
142 RightAlt = Keys.RightAlt,
143 OemTilde = Keys.OemTilde,
144 OemQuotes = Keys.OemQuotes,
145 Aring = Keys.OemCloseBrackets,
146 Ouml = Keys.OemTilde,
147 Auml = Keys.OemQuotes,
148 OemPlus = Keys.OemPlus,
149 LessOrGreater = Keys.OemBackslash,
150 Period = Keys.OemPeriod,
151 Comma = Keys.OemComma,
152 }
153}
@ Down
Kallistetaan alas.
@ Up
Kallistetaan ylös.
@ Right
Kallistetaan oikealle.
@ Left
Kallistetaan vasemalle.
@ Enter
Siirtymässä olion päälle.