gosu 0.7.46-x86-mingw32 → 0.7.47.1-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gosu/Buttons.hpp +126 -90
- data/Gosu/Graphics.hpp +4 -0
- data/Gosu/Input.hpp +2 -9
- data/Gosu/Version.hpp +2 -2
- data/lib/gosu.for_1_8.so +0 -0
- data/lib/gosu.for_1_9.so +0 -0
- data/lib/gosu/patches.rb +4 -1
- metadata +6 -21
- data/Gosu/ButtonsMac.hpp +0 -227
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA512:
|
3
|
+
data.tar.gz: 9a68c14a687fefa882fbaec9a73d761b6e90fde7c01c2cfd2248aa73df913bf99b1adc5b97b98c908412426c71cf5058331dc82d12a32778fb6418c219c71093
|
4
|
+
metadata.gz: 1a37cd19776555e63ca83cadf16ec5d5bfcac2687d1ff6a75b11a1adedf91e6bfb499345b6414b4bc19edca6dc8175c39041d11ea27a7ca8b86ada4b9336be6a
|
5
|
+
SHA1:
|
6
|
+
data.tar.gz: d10f7b72a9e19fdab4154ac068bb42cf9a6cbb07
|
7
|
+
metadata.gz: 8cfcf0988dc79dc4f2de3703baddc650b01b09fb
|
data/Gosu/Buttons.hpp
CHANGED
@@ -1,5 +1,19 @@
|
|
1
|
-
#ifndef
|
2
|
-
#define
|
1
|
+
#ifndef GOSU_BUTTONS_HPP
|
2
|
+
#define GOSU_BUTTONS_HPP
|
3
|
+
|
4
|
+
#include <Gosu/Platform.hpp>
|
5
|
+
|
6
|
+
#ifdef GOSU_IS_MAC
|
7
|
+
#define GOSU_SCANCODE(mac, windows_or_linux) mac
|
8
|
+
#define GOSU_SPECIAL_SCANCODE(mac, windows, linux) mac
|
9
|
+
#else
|
10
|
+
#define GOSU_SCANCODE(mac, linux_or_windows) linux_or_windows
|
11
|
+
#ifdef GOSU_IS_WIN
|
12
|
+
#define GOSU_SPECIAL_SCANCODE(mac, windows, linux) windows
|
13
|
+
#else
|
14
|
+
#define GOSU_SPECIAL_SCANCODE(mac, windows, linux) linux
|
15
|
+
#endif
|
16
|
+
#endif
|
3
17
|
|
4
18
|
namespace Gosu
|
5
19
|
{
|
@@ -8,93 +22,104 @@ namespace Gosu
|
|
8
22
|
//! mouse buttons and mouse wheel (ms*) and gamepad buttons (gp*).
|
9
23
|
enum ButtonName
|
10
24
|
{
|
11
|
-
kbRangeBegin
|
12
|
-
kbEscape = 0x01,
|
13
|
-
kbF1 = 0x3b,
|
14
|
-
kbF2 = 0x3c,
|
15
|
-
kbF3 = 0x3d,
|
16
|
-
kbF4 = 0x3e,
|
17
|
-
kbF5 = 0x3f,
|
18
|
-
kbF6 = 0x40,
|
19
|
-
kbF7 = 0x41,
|
20
|
-
kbF8 = 0x42,
|
21
|
-
kbF9 = 0x43,
|
22
|
-
kbF10 = 0x44,
|
23
|
-
kbF11 = 0x57,
|
24
|
-
kbF12 = 0x58,
|
25
|
-
kb0 = 0x0b,
|
26
|
-
kb1 = 0x02,
|
27
|
-
kb2 = 0x03,
|
28
|
-
kb3 = 0x04,
|
29
|
-
kb4 = 0x05,
|
30
|
-
kb5 = 0x06,
|
31
|
-
kb6 = 0x07,
|
32
|
-
kb7 = 0x08,
|
33
|
-
kb8 = 0x09,
|
34
|
-
kb9 = 0x0a,
|
35
|
-
kbTab = 0x0f,
|
36
|
-
kbReturn = 0x1c,
|
37
|
-
kbSpace = 0x39,
|
38
|
-
kbLeftShift = 0x2a,
|
39
|
-
kbRightShift = 0x36,
|
40
|
-
kbLeftControl = 0x1d,
|
41
|
-
kbRightControl = 0x9d,
|
42
|
-
kbLeftAlt = 0x38,
|
43
|
-
kbRightAlt = 0xb8,
|
44
|
-
kbLeftMeta = 0xdb,
|
45
|
-
kbRightMeta = 0xdc,
|
46
|
-
kbBackspace = 0x0e,
|
47
|
-
kbLeft = 0xcb,
|
48
|
-
kbRight = 0xcd,
|
49
|
-
kbUp = 0xc8,
|
50
|
-
kbDown = 0xd0,
|
51
|
-
kbHome = 0xc7,
|
52
|
-
kbEnd = 0xcf,
|
53
|
-
kbInsert = 0xd2,
|
54
|
-
kbDelete = 0xd3,
|
55
|
-
kbPageUp = 0xc9,
|
56
|
-
kbPageDown = 0xd1,
|
57
|
-
kbEnter = 0x9c,
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
25
|
+
kbRangeBegin,
|
26
|
+
kbEscape = GOSU_SCANCODE(0x35, 0x01),
|
27
|
+
kbF1 = GOSU_SCANCODE(0x7a, 0x3b),
|
28
|
+
kbF2 = GOSU_SCANCODE(0x78, 0x3c),
|
29
|
+
kbF3 = GOSU_SCANCODE(0x63, 0x3d),
|
30
|
+
kbF4 = GOSU_SCANCODE(0x76, 0x3e),
|
31
|
+
kbF5 = GOSU_SCANCODE(0x60, 0x3f),
|
32
|
+
kbF6 = GOSU_SCANCODE(0x61, 0x40),
|
33
|
+
kbF7 = GOSU_SCANCODE(0x62, 0x41),
|
34
|
+
kbF8 = GOSU_SCANCODE(0x64, 0x42),
|
35
|
+
kbF9 = GOSU_SCANCODE(0x65, 0x43),
|
36
|
+
kbF10 = GOSU_SCANCODE(0x6d, 0x44),
|
37
|
+
kbF11 = GOSU_SCANCODE(0x67, 0x57),
|
38
|
+
kbF12 = GOSU_SCANCODE(0x6f, 0x58),
|
39
|
+
kb0 = GOSU_SCANCODE(0x1d, 0x0b),
|
40
|
+
kb1 = GOSU_SCANCODE(0x12, 0x02),
|
41
|
+
kb2 = GOSU_SCANCODE(0x13, 0x03),
|
42
|
+
kb3 = GOSU_SCANCODE(0x14, 0x04),
|
43
|
+
kb4 = GOSU_SCANCODE(0x15, 0x05),
|
44
|
+
kb5 = GOSU_SCANCODE(0x17, 0x06),
|
45
|
+
kb6 = GOSU_SCANCODE(0x16, 0x07),
|
46
|
+
kb7 = GOSU_SCANCODE(0x1a, 0x08),
|
47
|
+
kb8 = GOSU_SCANCODE(0x1c, 0x09),
|
48
|
+
kb9 = GOSU_SCANCODE(0x19, 0x0a),
|
49
|
+
kbTab = GOSU_SCANCODE(0x30, 0x0f),
|
50
|
+
kbReturn = GOSU_SCANCODE(0x24, 0x1c),
|
51
|
+
kbSpace = GOSU_SCANCODE(0x31, 0x39),
|
52
|
+
kbLeftShift = GOSU_SCANCODE(0x38, 0x2a),
|
53
|
+
kbRightShift = GOSU_SCANCODE(0x3c, 0x36),
|
54
|
+
kbLeftControl = GOSU_SCANCODE(0x3b, 0x1d),
|
55
|
+
kbRightControl = GOSU_SPECIAL_SCANCODE(0x3e, 0x9d, 0x61),
|
56
|
+
kbLeftAlt = GOSU_SCANCODE(0x3a, 0x38),
|
57
|
+
kbRightAlt = GOSU_SPECIAL_SCANCODE(0x3d, 0xb8, 0x64),
|
58
|
+
kbLeftMeta = GOSU_SPECIAL_SCANCODE(0x37, 0xdb, 0x7d),
|
59
|
+
kbRightMeta = GOSU_SPECIAL_SCANCODE(0x36, 0xdc, 0x7e),
|
60
|
+
kbBackspace = GOSU_SCANCODE(0x33, 0x0e),
|
61
|
+
kbLeft = GOSU_SPECIAL_SCANCODE(0x7b, 0xcb, 0x69),
|
62
|
+
kbRight = GOSU_SPECIAL_SCANCODE(0x7c, 0xcd, 0x6a),
|
63
|
+
kbUp = GOSU_SPECIAL_SCANCODE(0x7e, 0xc8, 0x67),
|
64
|
+
kbDown = GOSU_SPECIAL_SCANCODE(0x7d, 0xd0, 0x6c),
|
65
|
+
kbHome = GOSU_SPECIAL_SCANCODE(0x73, 0xc7, 0x66),
|
66
|
+
kbEnd = GOSU_SPECIAL_SCANCODE(0x77, 0xcf, 0x6b),
|
67
|
+
kbInsert = GOSU_SPECIAL_SCANCODE(0x72, 0xd2, 0x6e),
|
68
|
+
kbDelete = GOSU_SPECIAL_SCANCODE(0x75, 0xd3, 0x6f),
|
69
|
+
kbPageUp = GOSU_SPECIAL_SCANCODE(0x74, 0xc9, 0x68),
|
70
|
+
kbPageDown = GOSU_SPECIAL_SCANCODE(0x79, 0xd1, 0x6d),
|
71
|
+
kbEnter = GOSU_SPECIAL_SCANCODE(0x4c, 0x9c, 0x60),
|
72
|
+
kbBacktick = GOSU_SCANCODE(0x32, 0x29),
|
73
|
+
kbMinus = GOSU_SCANCODE(0x1b, 0x0c),
|
74
|
+
kbEqual = GOSU_SCANCODE(0x18, 0x0d),
|
75
|
+
kbBracketLeft = GOSU_SCANCODE(0x21, 0x1a),
|
76
|
+
kbBracketRight = GOSU_SCANCODE(0x1e, 0x1b),
|
77
|
+
kbBackslash = GOSU_SCANCODE(0x2a, 0x2b),
|
78
|
+
kbSemicolon = GOSU_SCANCODE(0x29, 0x27),
|
79
|
+
kbApostrophe = GOSU_SCANCODE(0x27, 0x28),
|
80
|
+
kbComma = GOSU_SCANCODE(0x2b, 0x33),
|
81
|
+
kbPeriod = GOSU_SCANCODE(0x2f, 0x34),
|
82
|
+
kbSlash = GOSU_SCANCODE(0x2c, 0x35),
|
83
|
+
kbA = GOSU_SCANCODE(0x00, 0x1e),
|
84
|
+
kbB = GOSU_SCANCODE(0x0b, 0x30),
|
85
|
+
kbC = GOSU_SCANCODE(0x08, 0x2e),
|
86
|
+
kbD = GOSU_SCANCODE(0x02, 0x20),
|
87
|
+
kbE = GOSU_SCANCODE(0x0e, 0x12),
|
88
|
+
kbF = GOSU_SCANCODE(0x03, 0x21),
|
89
|
+
kbG = GOSU_SCANCODE(0x05, 0x22),
|
90
|
+
kbH = GOSU_SCANCODE(0x04, 0x23),
|
91
|
+
kbI = GOSU_SCANCODE(0x22, 0x17),
|
92
|
+
kbJ = GOSU_SCANCODE(0x26, 0x24),
|
93
|
+
kbK = GOSU_SCANCODE(0x28, 0x25),
|
94
|
+
kbL = GOSU_SCANCODE(0x25, 0x26),
|
95
|
+
kbM = GOSU_SCANCODE(0x2e, 0x32),
|
96
|
+
kbN = GOSU_SCANCODE(0x2d, 0x31),
|
97
|
+
kbO = GOSU_SCANCODE(0x1f, 0x18),
|
98
|
+
kbP = GOSU_SCANCODE(0x23, 0x19),
|
99
|
+
kbQ = GOSU_SCANCODE(0x0c, 0x10),
|
100
|
+
kbR = GOSU_SCANCODE(0x0f, 0x13),
|
101
|
+
kbS = GOSU_SCANCODE(0x01, 0x1f),
|
102
|
+
kbT = GOSU_SCANCODE(0x11, 0x14),
|
103
|
+
kbU = GOSU_SCANCODE(0x20, 0x16),
|
104
|
+
kbV = GOSU_SCANCODE(0x09, 0x2f),
|
105
|
+
kbW = GOSU_SCANCODE(0x0d, 0x11),
|
106
|
+
kbX = GOSU_SCANCODE(0x07, 0x2d),
|
107
|
+
kbY = GOSU_SCANCODE(0x10, 0x15),
|
108
|
+
kbZ = GOSU_SCANCODE(0x06, 0x2c),
|
109
|
+
kbNumpad0 = GOSU_SCANCODE(0x52, 0x52),
|
110
|
+
kbNumpad1 = GOSU_SCANCODE(0x53, 0x4f),
|
111
|
+
kbNumpad2 = GOSU_SCANCODE(0x54, 0x50),
|
112
|
+
kbNumpad3 = GOSU_SCANCODE(0x55, 0x51),
|
113
|
+
kbNumpad4 = GOSU_SCANCODE(0x56, 0x4b),
|
114
|
+
kbNumpad5 = GOSU_SCANCODE(0x57, 0x4c),
|
115
|
+
kbNumpad6 = GOSU_SCANCODE(0x58, 0x4d),
|
116
|
+
kbNumpad7 = GOSU_SCANCODE(0x59, 0x47),
|
117
|
+
kbNumpad8 = GOSU_SCANCODE(0x5b, 0x48),
|
118
|
+
kbNumpad9 = GOSU_SCANCODE(0x5c, 0x49),
|
119
|
+
kbNumpadAdd = GOSU_SCANCODE(0x45, 0x4e),
|
120
|
+
kbNumpadSubtract = GOSU_SCANCODE(0x4e, 0x4a),
|
121
|
+
kbNumpadMultiply = GOSU_SCANCODE(0x43, 0x37),
|
122
|
+
kbNumpadDivide = GOSU_SCANCODE(0x4b, 0xb5),
|
98
123
|
kbRangeEnd = 0xff,
|
99
124
|
|
100
125
|
msRangeBegin,
|
@@ -103,7 +128,15 @@ namespace Gosu
|
|
103
128
|
msMiddle,
|
104
129
|
msWheelUp,
|
105
130
|
msWheelDown,
|
106
|
-
|
131
|
+
msOther0,
|
132
|
+
msOther1,
|
133
|
+
msOther2,
|
134
|
+
msOther3,
|
135
|
+
msOther4,
|
136
|
+
msOther5,
|
137
|
+
msOther6,
|
138
|
+
msOther7,
|
139
|
+
msRangeEnd = 0x110,
|
107
140
|
|
108
141
|
gpRangeBegin,
|
109
142
|
gpLeft = gpRangeBegin,
|
@@ -224,4 +257,7 @@ namespace Gosu
|
|
224
257
|
};
|
225
258
|
}
|
226
259
|
|
260
|
+
#undef GOSU_SCANCODE
|
261
|
+
#undef GOSU_SPECIAL_SCANCODE
|
262
|
+
|
227
263
|
#endif
|
data/Gosu/Graphics.hpp
CHANGED
@@ -24,6 +24,10 @@ namespace Gosu
|
|
24
24
|
unsigned const MAX_TEXTURE_SIZE = 1024;
|
25
25
|
|
26
26
|
#ifdef GOSU_IS_MAC
|
27
|
+
// TODO: Without this gigantic hack, Gosu crashes in the "scale" function,
|
28
|
+
// but _only_ when used from Ruby 1.9. It is unclear what might cause this -
|
29
|
+
// maybe a compiler bug that tries to use SSE functions with the wrong
|
30
|
+
// alignment. Adding __attribute__((aligned(16))) does not help, though.
|
27
31
|
struct Transform
|
28
32
|
{
|
29
33
|
double value[16];
|
data/Gosu/Input.hpp
CHANGED
@@ -6,28 +6,21 @@
|
|
6
6
|
|
7
7
|
#include <Gosu/Fwd.hpp>
|
8
8
|
#include <Gosu/Platform.hpp>
|
9
|
+
#include <Gosu/Buttons.hpp>
|
10
|
+
#include <Gosu/TR1.hpp>
|
9
11
|
|
10
12
|
#ifdef GOSU_IS_WIN
|
11
|
-
#include <Gosu/Buttons.hpp>
|
12
13
|
#ifndef NOMINMAX
|
13
14
|
#define NOMINMAX
|
14
15
|
#endif
|
15
16
|
#include <windows.h>
|
16
17
|
#endif
|
17
18
|
|
18
|
-
#ifdef GOSU_IS_MAC
|
19
|
-
#include <Gosu/ButtonsMac.hpp>
|
20
|
-
#endif
|
21
|
-
|
22
19
|
#ifdef GOSU_IS_X
|
23
|
-
#include <Gosu/Buttons.hpp>
|
24
20
|
#include <X11/Xlib.h>
|
25
21
|
#include <X11/Xutil.h>
|
26
22
|
#endif
|
27
23
|
|
28
|
-
#include <Gosu/Platform.hpp>
|
29
|
-
#include <Gosu/Fwd.hpp>
|
30
|
-
#include <Gosu/TR1.hpp>
|
31
24
|
#include <vector>
|
32
25
|
|
33
26
|
namespace Gosu
|
data/Gosu/Version.hpp
CHANGED
data/lib/gosu.for_1_8.so
CHANGED
Binary file
|
data/lib/gosu.for_1_9.so
CHANGED
Binary file
|
data/lib/gosu/patches.rb
CHANGED
@@ -75,4 +75,7 @@ class Gosu::Window
|
|
75
75
|
end
|
76
76
|
|
77
77
|
# Release OpenAL resources during Ruby's shutdown, not Gosu's.
|
78
|
-
at_exit
|
78
|
+
at_exit do
|
79
|
+
Gosu::Song.current_song.stop if Gosu::Song.current_song
|
80
|
+
Gosu::_release_all_openal_resources
|
81
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gosu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 7
|
9
|
-
- 46
|
10
|
-
version: 0.7.46
|
4
|
+
version: 0.7.47.1
|
11
5
|
platform: x86-mingw32
|
12
6
|
authors:
|
13
7
|
- Julian Raschke
|
@@ -15,7 +9,7 @@ autorequire:
|
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
11
|
|
18
|
-
date: 2013-
|
12
|
+
date: 2013-04-01 00:00:00 Z
|
19
13
|
dependencies: []
|
20
14
|
|
21
15
|
description: " 2D game development library.\n\n Gosu features easy to use and game-friendly interfaces to 2D graphics\n and text (accelerated by 3D hardware), sound samples and music as well as\n keyboard, mouse and gamepad/joystick input.\n\n Also includes demos for integration with RMagick, Chipmunk and OpenGL.\n"
|
@@ -35,7 +29,6 @@ files:
|
|
35
29
|
- Gosu/AutoLink.hpp
|
36
30
|
- Gosu/Bitmap.hpp
|
37
31
|
- Gosu/Buttons.hpp
|
38
|
-
- Gosu/ButtonsMac.hpp
|
39
32
|
- Gosu/Color.hpp
|
40
33
|
- Gosu/Directories.hpp
|
41
34
|
- Gosu/Font.hpp
|
@@ -101,6 +94,8 @@ files:
|
|
101
94
|
homepage: http://www.libgosu.org/
|
102
95
|
licenses: []
|
103
96
|
|
97
|
+
metadata: {}
|
98
|
+
|
104
99
|
post_install_message:
|
105
100
|
rdoc_options:
|
106
101
|
- README.txt
|
@@ -117,31 +112,21 @@ rdoc_options:
|
|
117
112
|
require_paths:
|
118
113
|
- lib
|
119
114
|
required_ruby_version: !ruby/object:Gem::Requirement
|
120
|
-
none: false
|
121
115
|
requirements:
|
122
116
|
- - ">="
|
123
117
|
- !ruby/object:Gem::Version
|
124
|
-
hash: 51
|
125
|
-
segments:
|
126
|
-
- 1
|
127
|
-
- 8
|
128
|
-
- 2
|
129
118
|
version: 1.8.2
|
130
119
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
|
-
none: false
|
132
120
|
requirements:
|
133
121
|
- - ">="
|
134
122
|
- !ruby/object:Gem::Version
|
135
|
-
hash: 3
|
136
|
-
segments:
|
137
|
-
- 0
|
138
123
|
version: "0"
|
139
124
|
requirements: []
|
140
125
|
|
141
126
|
rubyforge_project:
|
142
|
-
rubygems_version:
|
127
|
+
rubygems_version: 2.0.3
|
143
128
|
signing_key:
|
144
|
-
specification_version:
|
129
|
+
specification_version: 4
|
145
130
|
summary: 2D game development library.
|
146
131
|
test_files: []
|
147
132
|
|
data/Gosu/ButtonsMac.hpp
DELETED
@@ -1,227 +0,0 @@
|
|
1
|
-
#ifndef GOSU_BUTTONSMAC_HPP
|
2
|
-
#define GOSU_BUTTONSMAC_HPP
|
3
|
-
|
4
|
-
namespace Gosu
|
5
|
-
{
|
6
|
-
//! List of button ids that can be used with Gosu::Input.
|
7
|
-
//! This enumeration contains ids for keyboard keys (kb*),
|
8
|
-
//! mouse buttons and mouse wheel (ms*) and gamepad buttons (gp*).
|
9
|
-
enum ButtonName
|
10
|
-
{
|
11
|
-
kbRangeBegin = 0x00,
|
12
|
-
kbEscape = 0x35,
|
13
|
-
kbF1 = 0x7a,
|
14
|
-
kbF2 = 0x78,
|
15
|
-
kbF3 = 0x63,
|
16
|
-
kbF4 = 0x76,
|
17
|
-
kbF5 = 0x60,
|
18
|
-
kbF6 = 0x61,
|
19
|
-
kbF7 = 0x62,
|
20
|
-
kbF8 = 0x64,
|
21
|
-
kbF9 = 0x65,
|
22
|
-
kbF10 = 0x6d,
|
23
|
-
kbF11 = 0x67,
|
24
|
-
kbF12 = 0x6f,
|
25
|
-
kb1 = 0x12,
|
26
|
-
kb2 = 0x13,
|
27
|
-
kb3 = 0x14,
|
28
|
-
kb4 = 0x15,
|
29
|
-
kb5 = 0x17,
|
30
|
-
kb6 = 0x16,
|
31
|
-
kb7 = 0x1a,
|
32
|
-
kb8 = 0x1c,
|
33
|
-
kb9 = 0x19,
|
34
|
-
kb0 = 0x1d,
|
35
|
-
kbA = 0x00,
|
36
|
-
kbB = 0x0b,
|
37
|
-
kbC = 0x08,
|
38
|
-
kbD = 0x02,
|
39
|
-
kbE = 0x0e,
|
40
|
-
kbF = 0x03,
|
41
|
-
kbG = 0x05,
|
42
|
-
kbH = 0x04,
|
43
|
-
kbI = 0x22,
|
44
|
-
kbJ = 0x26,
|
45
|
-
kbK = 0x28,
|
46
|
-
kbL = 0x25,
|
47
|
-
kbM = 0x2e,
|
48
|
-
kbN = 0x2d,
|
49
|
-
kbO = 0x1f,
|
50
|
-
kbP = 0x23,
|
51
|
-
kbQ = 0x0c,
|
52
|
-
kbR = 0x0f,
|
53
|
-
kbS = 0x01,
|
54
|
-
kbT = 0x11,
|
55
|
-
kbU = 0x20,
|
56
|
-
kbV = 0x09,
|
57
|
-
kbW = 0x0d,
|
58
|
-
kbX = 0x07,
|
59
|
-
kbY = 0x10,
|
60
|
-
kbZ = 0x06,
|
61
|
-
kbTab = 0x30,
|
62
|
-
kbReturn = 0x24,
|
63
|
-
kbSpace = 0x31,
|
64
|
-
kbLeftShift = 0x38,
|
65
|
-
kbRightShift = 0x3c,
|
66
|
-
kbLeftControl = 0x3b,
|
67
|
-
kbRightControl = 0x3e,
|
68
|
-
kbLeftAlt = 0x3a,
|
69
|
-
kbRightAlt = 0x3d,
|
70
|
-
kbLeftMeta = 0x37,
|
71
|
-
kbRightMeta = 0x36,
|
72
|
-
kbBackspace = 0x33,
|
73
|
-
kbLeft = 0x7b,
|
74
|
-
kbRight = 0x7c,
|
75
|
-
kbUp = 0x7e,
|
76
|
-
kbDown = 0x7d,
|
77
|
-
kbHome = 0x73,
|
78
|
-
kbEnd = 0x77,
|
79
|
-
kbInsert = 0x72,
|
80
|
-
kbDelete = 0x75,
|
81
|
-
kbPageUp = 0x74,
|
82
|
-
kbPageDown = 0x79,
|
83
|
-
kbEnter = 0x4c,
|
84
|
-
kbNumpad1 = 0x53,
|
85
|
-
kbNumpad2 = 0x54,
|
86
|
-
kbNumpad3 = 0x55,
|
87
|
-
kbNumpad4 = 0x56,
|
88
|
-
kbNumpad5 = 0x57,
|
89
|
-
kbNumpad6 = 0x58,
|
90
|
-
kbNumpad7 = 0x59,
|
91
|
-
kbNumpad8 = 0x5b,
|
92
|
-
kbNumpad9 = 0x5c,
|
93
|
-
kbNumpad0 = 0x52,
|
94
|
-
kbNumpadAdd = 0x45,
|
95
|
-
kbNumpadSubtract = 0x4e,
|
96
|
-
kbNumpadMultiply = 0x43,
|
97
|
-
kbNumpadDivide = 0x4b,
|
98
|
-
kbRangeEnd = 0xffff,
|
99
|
-
|
100
|
-
msRangeBegin,
|
101
|
-
msLeft = msRangeBegin,
|
102
|
-
msRight,
|
103
|
-
msMiddle,
|
104
|
-
msWheelUp,
|
105
|
-
msWheelDown,
|
106
|
-
msRangeEnd,
|
107
|
-
|
108
|
-
gpRangeBegin,
|
109
|
-
gpLeft = gpRangeBegin,
|
110
|
-
gpRight,
|
111
|
-
gpUp,
|
112
|
-
gpDown,
|
113
|
-
gpButton0,
|
114
|
-
gpButton1,
|
115
|
-
gpButton2,
|
116
|
-
gpButton3,
|
117
|
-
gpButton4,
|
118
|
-
gpButton5,
|
119
|
-
gpButton6,
|
120
|
-
gpButton7,
|
121
|
-
gpButton8,
|
122
|
-
gpButton9,
|
123
|
-
gpButton10,
|
124
|
-
gpButton11,
|
125
|
-
gpButton12,
|
126
|
-
gpButton13,
|
127
|
-
gpButton14,
|
128
|
-
gpButton15,
|
129
|
-
|
130
|
-
gp0Left,
|
131
|
-
gp0Right,
|
132
|
-
gp0Up,
|
133
|
-
gp0Down,
|
134
|
-
gp0Button0,
|
135
|
-
gp0Button1,
|
136
|
-
gp0Button2,
|
137
|
-
gp0Button3,
|
138
|
-
gp0Button4,
|
139
|
-
gp0Button5,
|
140
|
-
gp0Button6,
|
141
|
-
gp0Button7,
|
142
|
-
gp0Button8,
|
143
|
-
gp0Button9,
|
144
|
-
gp0Button10,
|
145
|
-
gp0Button11,
|
146
|
-
gp0Button12,
|
147
|
-
gp0Button13,
|
148
|
-
gp0Button14,
|
149
|
-
gp0Button15,
|
150
|
-
|
151
|
-
gp1Left,
|
152
|
-
gp1Right,
|
153
|
-
gp1Up,
|
154
|
-
gp1Down,
|
155
|
-
gp1Button0,
|
156
|
-
gp1Button1,
|
157
|
-
gp1Button2,
|
158
|
-
gp1Button3,
|
159
|
-
gp1Button4,
|
160
|
-
gp1Button5,
|
161
|
-
gp1Button6,
|
162
|
-
gp1Button7,
|
163
|
-
gp1Button8,
|
164
|
-
gp1Button9,
|
165
|
-
gp1Button10,
|
166
|
-
gp1Button11,
|
167
|
-
gp1Button12,
|
168
|
-
gp1Button13,
|
169
|
-
gp1Button14,
|
170
|
-
gp1Button15,
|
171
|
-
|
172
|
-
gp2Left,
|
173
|
-
gp2Right,
|
174
|
-
gp2Up,
|
175
|
-
gp2Down,
|
176
|
-
gp2Button0,
|
177
|
-
gp2Button1,
|
178
|
-
gp2Button2,
|
179
|
-
gp2Button3,
|
180
|
-
gp2Button4,
|
181
|
-
gp2Button5,
|
182
|
-
gp2Button6,
|
183
|
-
gp2Button7,
|
184
|
-
gp2Button8,
|
185
|
-
gp2Button9,
|
186
|
-
gp2Button10,
|
187
|
-
gp2Button11,
|
188
|
-
gp2Button12,
|
189
|
-
gp2Button13,
|
190
|
-
gp2Button14,
|
191
|
-
gp2Button15,
|
192
|
-
|
193
|
-
gp3Left,
|
194
|
-
gp3Right,
|
195
|
-
gp3Up,
|
196
|
-
gp3Down,
|
197
|
-
gp3Button0,
|
198
|
-
gp3Button1,
|
199
|
-
gp3Button2,
|
200
|
-
gp3Button3,
|
201
|
-
gp3Button4,
|
202
|
-
gp3Button5,
|
203
|
-
gp3Button6,
|
204
|
-
gp3Button7,
|
205
|
-
gp3Button8,
|
206
|
-
gp3Button9,
|
207
|
-
gp3Button10,
|
208
|
-
gp3Button11,
|
209
|
-
gp3Button12,
|
210
|
-
gp3Button13,
|
211
|
-
gp3Button14,
|
212
|
-
gp3Button15,
|
213
|
-
|
214
|
-
gpRangeEnd = gp3Button15,
|
215
|
-
|
216
|
-
numButtons = gpRangeEnd + 1,
|
217
|
-
numGamepads = 4,
|
218
|
-
noButton = 0xffffffff,
|
219
|
-
|
220
|
-
kbNum = kbRangeEnd - kbRangeBegin + 1,
|
221
|
-
msNum = msRangeEnd - msRangeBegin + 1,
|
222
|
-
gpNum = gpRangeEnd - gpRangeBegin + 1,
|
223
|
-
gpNumPerGamepad = gpNum / (numGamepads + 1),
|
224
|
-
};
|
225
|
-
}
|
226
|
-
|
227
|
-
#endif
|