gosu 0.14.6.pre1 → 1.0.0.pre2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -0
- data/COPYING +1 -1
- data/dependencies/SDL/include/SDL.h +138 -0
- data/dependencies/SDL/include/SDL_assert.h +293 -0
- data/dependencies/SDL/include/SDL_atomic.h +295 -0
- data/dependencies/SDL/include/SDL_audio.h +859 -0
- data/dependencies/SDL/include/SDL_bits.h +121 -0
- data/dependencies/SDL/include/SDL_blendmode.h +123 -0
- data/dependencies/SDL/include/SDL_clipboard.h +71 -0
- data/dependencies/SDL/include/SDL_config.h +55 -0
- data/dependencies/SDL/include/SDL_config_android.h +182 -0
- data/dependencies/SDL/include/SDL_config_iphoneos.h +207 -0
- data/dependencies/SDL/include/SDL_config_macosx.h +266 -0
- data/dependencies/SDL/include/SDL_config_minimal.h +85 -0
- data/dependencies/SDL/include/SDL_config_os2.h +188 -0
- data/dependencies/SDL/include/SDL_config_pandora.h +135 -0
- data/dependencies/SDL/include/SDL_config_psp.h +165 -0
- data/dependencies/SDL/include/SDL_config_windows.h +288 -0
- data/dependencies/SDL/include/SDL_config_winrt.h +243 -0
- data/dependencies/SDL/include/SDL_config_wiz.h +149 -0
- data/dependencies/SDL/include/SDL_copying.h +20 -0
- data/dependencies/SDL/include/SDL_cpuinfo.h +299 -0
- data/dependencies/SDL/include/SDL_egl.h +1676 -0
- data/dependencies/SDL/include/SDL_endian.h +263 -0
- data/dependencies/SDL/include/SDL_error.h +112 -0
- data/dependencies/SDL/include/SDL_events.h +827 -0
- data/dependencies/SDL/include/SDL_filesystem.h +136 -0
- data/dependencies/SDL/include/SDL_gamecontroller.h +541 -0
- data/dependencies/SDL/include/SDL_gesture.h +87 -0
- data/dependencies/SDL/include/SDL_haptic.h +1247 -0
- data/dependencies/SDL/include/SDL_hints.h +1578 -0
- data/dependencies/SDL/include/SDL_joystick.h +499 -0
- data/dependencies/SDL/include/SDL_keyboard.h +217 -0
- data/dependencies/SDL/include/SDL_keycode.h +351 -0
- data/dependencies/SDL/include/SDL_loadso.h +81 -0
- data/dependencies/SDL/include/SDL_locale.h +101 -0
- data/dependencies/SDL/include/SDL_log.h +211 -0
- data/dependencies/SDL/include/SDL_main.h +180 -0
- data/dependencies/SDL/include/SDL_messagebox.h +146 -0
- data/dependencies/SDL/include/SDL_metal.h +117 -0
- data/dependencies/SDL/include/SDL_misc.h +75 -0
- data/dependencies/SDL/include/SDL_mouse.h +302 -0
- data/dependencies/SDL/include/SDL_mutex.h +251 -0
- data/dependencies/SDL/include/SDL_name.h +33 -0
- data/dependencies/SDL/include/SDL_opengl.h +2183 -0
- data/dependencies/SDL/include/SDL_opengl_glext.h +11180 -0
- data/dependencies/SDL/include/SDL_opengles.h +39 -0
- data/dependencies/SDL/include/SDL_opengles2.h +52 -0
- data/dependencies/SDL/include/SDL_opengles2_gl2.h +621 -0
- data/dependencies/SDL/include/SDL_opengles2_gl2ext.h +2050 -0
- data/dependencies/SDL/include/SDL_opengles2_gl2platform.h +30 -0
- data/dependencies/SDL/include/SDL_opengles2_khrplatform.h +282 -0
- data/dependencies/SDL/include/SDL_pixels.h +479 -0
- data/dependencies/SDL/include/SDL_platform.h +198 -0
- data/dependencies/SDL/include/SDL_power.h +75 -0
- data/dependencies/SDL/include/SDL_quit.h +58 -0
- data/dependencies/SDL/include/SDL_rect.h +174 -0
- data/dependencies/SDL/include/SDL_render.h +1158 -0
- data/dependencies/SDL/include/SDL_revision.h +2 -0
- data/dependencies/SDL/include/SDL_rwops.h +283 -0
- data/dependencies/SDL/include/SDL_scancode.h +413 -0
- data/dependencies/SDL/include/SDL_sensor.h +267 -0
- data/dependencies/SDL/include/SDL_shape.h +144 -0
- data/dependencies/SDL/include/SDL_stdinc.h +647 -0
- data/dependencies/SDL/include/SDL_surface.h +563 -0
- data/dependencies/SDL/include/SDL_system.h +325 -0
- data/dependencies/SDL/include/SDL_syswm.h +354 -0
- data/dependencies/SDL/include/SDL_test.h +69 -0
- data/dependencies/SDL/include/SDL_test_assert.h +105 -0
- data/dependencies/SDL/include/SDL_test_common.h +218 -0
- data/dependencies/SDL/include/SDL_test_compare.h +69 -0
- data/dependencies/SDL/include/SDL_test_crc32.h +124 -0
- data/dependencies/SDL/include/SDL_test_font.h +81 -0
- data/dependencies/SDL/include/SDL_test_fuzzer.h +384 -0
- data/dependencies/SDL/include/SDL_test_harness.h +134 -0
- data/dependencies/SDL/include/SDL_test_images.h +78 -0
- data/dependencies/SDL/include/SDL_test_log.h +67 -0
- data/dependencies/SDL/include/SDL_test_md5.h +129 -0
- data/dependencies/SDL/include/SDL_test_memory.h +63 -0
- data/dependencies/SDL/include/SDL_test_random.h +115 -0
- data/dependencies/SDL/include/SDL_thread.h +366 -0
- data/dependencies/SDL/include/SDL_timer.h +115 -0
- data/dependencies/SDL/include/SDL_touch.h +102 -0
- data/dependencies/SDL/include/SDL_types.h +29 -0
- data/dependencies/SDL/include/SDL_version.h +162 -0
- data/dependencies/SDL/include/SDL_video.h +1282 -0
- data/dependencies/SDL/include/SDL_vulkan.h +276 -0
- data/dependencies/SDL/include/begin_code.h +166 -0
- data/dependencies/SDL/include/close_code.h +40 -0
- data/dependencies/SDL/lib/x64/libSDL2.dll.a +0 -0
- data/dependencies/SDL/lib/x86/libSDL2.dll.a +0 -0
- data/dependencies/SDL_sound/SDL_sound.c +795 -0
- data/dependencies/SDL_sound/SDL_sound.h +725 -0
- data/dependencies/SDL_sound/SDL_sound_aiff.c +537 -0
- data/dependencies/SDL_sound/SDL_sound_au.c +352 -0
- data/dependencies/SDL_sound/SDL_sound_coreaudio.c +747 -0
- data/dependencies/SDL_sound/SDL_sound_flac.c +182 -0
- data/dependencies/SDL_sound/SDL_sound_internal.h +304 -0
- data/dependencies/SDL_sound/SDL_sound_modplug.c +228 -0
- data/dependencies/SDL_sound/SDL_sound_mp3.c +184 -0
- data/dependencies/SDL_sound/SDL_sound_raw.c +164 -0
- data/dependencies/SDL_sound/SDL_sound_shn.c +1309 -0
- data/dependencies/SDL_sound/SDL_sound_voc.c +550 -0
- data/dependencies/SDL_sound/SDL_sound_vorbis.c +223 -0
- data/dependencies/SDL_sound/SDL_sound_wav.c +783 -0
- data/dependencies/SDL_sound/dr_flac.h +5906 -0
- data/dependencies/SDL_sound/dr_mp3.h +2832 -0
- data/dependencies/SDL_sound/libmodplug/fastmix.c +1748 -0
- data/dependencies/SDL_sound/libmodplug/libmodplug.h +1001 -0
- data/dependencies/SDL_sound/libmodplug/load_669.c +188 -0
- data/dependencies/SDL_sound/libmodplug/load_abc.c +4725 -0
- data/dependencies/SDL_sound/libmodplug/load_amf.c +403 -0
- data/dependencies/SDL_sound/libmodplug/load_ams.c +587 -0
- data/dependencies/SDL_sound/libmodplug/load_dbm.c +357 -0
- data/dependencies/SDL_sound/libmodplug/load_dmf.c +531 -0
- data/dependencies/SDL_sound/libmodplug/load_dsm.c +232 -0
- data/dependencies/SDL_sound/libmodplug/load_far.c +253 -0
- data/dependencies/SDL_sound/libmodplug/load_it.c +796 -0
- data/dependencies/SDL_sound/libmodplug/load_mdl.c +488 -0
- data/dependencies/SDL_sound/libmodplug/load_med.c +757 -0
- data/dependencies/SDL_sound/libmodplug/load_mid.c +1405 -0
- data/dependencies/SDL_sound/libmodplug/load_mod.c +269 -0
- data/dependencies/SDL_sound/libmodplug/load_mt2.c +546 -0
- data/dependencies/SDL_sound/libmodplug/load_mtm.c +142 -0
- data/dependencies/SDL_sound/libmodplug/load_okt.c +192 -0
- data/dependencies/SDL_sound/libmodplug/load_pat.c +1143 -0
- data/dependencies/SDL_sound/libmodplug/load_pat.h +25 -0
- data/dependencies/SDL_sound/libmodplug/load_psm.c +350 -0
- data/dependencies/SDL_sound/libmodplug/load_ptm.c +204 -0
- data/dependencies/SDL_sound/libmodplug/load_s3m.c +325 -0
- data/dependencies/SDL_sound/libmodplug/load_stm.c +180 -0
- data/dependencies/SDL_sound/libmodplug/load_ult.c +206 -0
- data/dependencies/SDL_sound/libmodplug/load_umx.c +51 -0
- data/dependencies/SDL_sound/libmodplug/load_xm.c +554 -0
- data/dependencies/SDL_sound/libmodplug/mmcmp.c +382 -0
- data/dependencies/SDL_sound/libmodplug/modplug.c +170 -0
- data/dependencies/SDL_sound/libmodplug/modplug.h +90 -0
- data/dependencies/SDL_sound/libmodplug/snd_dsp.c +301 -0
- data/dependencies/SDL_sound/libmodplug/snd_flt.c +63 -0
- data/dependencies/SDL_sound/libmodplug/snd_fx.c +2350 -0
- data/dependencies/SDL_sound/libmodplug/sndfile.c +1169 -0
- data/dependencies/SDL_sound/libmodplug/sndmix.c +1034 -0
- data/dependencies/SDL_sound/libmodplug/tables.h +371 -0
- data/{src/stb_vorbis.c → dependencies/SDL_sound/stb_vorbis.h} +128 -23
- data/dependencies/al_soft/AL/al.h +655 -0
- data/dependencies/al_soft/AL/alc.h +270 -0
- data/dependencies/al_soft/AL/alext.h +585 -0
- data/dependencies/al_soft/AL/efx-creative.h +3 -0
- data/dependencies/al_soft/AL/efx-presets.h +402 -0
- data/dependencies/al_soft/AL/efx.h +762 -0
- data/dependencies/al_soft/x64/libOpenAL32.dll.a +0 -0
- data/dependencies/al_soft/x86/libOpenAL32.dll.a +0 -0
- data/{src → dependencies/stb}/stb_image.h +476 -176
- data/{src → dependencies/stb}/stb_image_write.h +253 -131
- data/{src → dependencies/stb}/stb_truetype.h +262 -104
- data/{src → dependencies/utf8proc}/utf8proc.c +47 -29
- data/{src → dependencies/utf8proc}/utf8proc.h +46 -24
- data/{src → dependencies/utf8proc}/utf8proc_data.h +10043 -9609
- data/ext/gosu/extconf.rb +53 -39
- data/{Gosu → include/Gosu}/Audio.hpp +6 -8
- data/include/Gosu/Bitmap.hpp +100 -0
- data/{Gosu → include/Gosu}/Buttons.hpp +104 -44
- data/include/Gosu/Channel.h +25 -0
- data/include/Gosu/Color.h +38 -0
- data/{Gosu → include/Gosu}/Color.hpp +0 -0
- data/{Gosu → include/Gosu}/Directories.hpp +0 -0
- data/include/Gosu/Font.h +36 -0
- data/{Gosu → include/Gosu}/Font.hpp +0 -0
- data/{Gosu → include/Gosu}/Fwd.hpp +0 -5
- data/include/Gosu/Gosu.h +82 -0
- data/{Gosu → include/Gosu}/Gosu.hpp +0 -0
- data/{Gosu → include/Gosu}/Graphics.hpp +0 -0
- data/{Gosu → include/Gosu}/GraphicsBase.hpp +0 -0
- data/{Gosu → include/Gosu}/IO.hpp +0 -0
- data/include/Gosu/Image.h +54 -0
- data/{Gosu → include/Gosu}/Image.hpp +7 -6
- data/{Gosu → include/Gosu}/ImageData.hpp +0 -0
- data/{Gosu → include/Gosu}/Input.hpp +39 -51
- data/{Gosu → include/Gosu}/Inspection.hpp +0 -0
- data/{Gosu → include/Gosu}/Math.hpp +0 -0
- data/{Gosu → include/Gosu}/Platform.hpp +0 -0
- data/include/Gosu/Sample.h +19 -0
- data/include/Gosu/Song.h +24 -0
- data/{Gosu → include/Gosu}/Text.hpp +0 -0
- data/include/Gosu/TextInput.h +30 -0
- data/{Gosu → include/Gosu}/TextInput.hpp +0 -0
- data/{Gosu → include/Gosu}/Timing.hpp +0 -0
- data/{Gosu → include/Gosu}/Utility.hpp +15 -4
- data/{Gosu → include/Gosu}/Version.hpp +3 -3
- data/include/Gosu/Window.h +63 -0
- data/{Gosu → include/Gosu}/Window.hpp +23 -25
- data/lib/OpenAL32.dll +0 -0
- data/lib/SDL2.dll +0 -0
- data/lib/gosu.rb +0 -3
- data/lib/gosu/compat.rb +9 -4
- data/lib/gosu/patches.rb +8 -11
- data/lib/gosu/swig_patches.rb +13 -6
- data/lib64/OpenAL32.dll +0 -0
- data/lib64/SDL2.dll +0 -0
- data/rdoc/gosu.rb +114 -21
- data/src/Audio.cpp +50 -224
- data/src/AudioFile.hpp +20 -37
- data/src/AudioFileAudioToolbox.cpp +237 -0
- data/src/AudioFileSDLSound.cpp +147 -0
- data/src/AudioImpl.cpp +3 -12
- data/src/AudioImpl.hpp +3 -1
- data/src/Bitmap.cpp +85 -83
- data/src/BitmapIO.cpp +52 -58
- data/src/ChannelWrapper.cpp +50 -0
- data/src/ColorWrapper.cpp +126 -0
- data/src/Constants.cpp +338 -0
- data/src/Font.cpp +4 -1
- data/src/FontWrapper.cpp +74 -0
- data/src/GosuWrapper.cpp +251 -0
- data/src/Graphics.cpp +11 -5
- data/src/GraphicsImpl.hpp +0 -1
- data/src/Image.cpp +13 -16
- data/src/ImageWrapper.cpp +168 -0
- data/src/Input.cpp +412 -164
- data/src/LargeImageData.cpp +2 -1
- data/src/MarkupParser.cpp +13 -4
- data/src/RubyGosu.cxx +502 -219
- data/src/RubyGosu.h +4 -2
- data/src/SampleWrapper.cpp +30 -0
- data/src/SongWrapper.cpp +52 -0
- data/src/TexChunk.cpp +29 -19
- data/src/Text.cpp +2 -0
- data/src/TextBuilder.cpp +6 -4
- data/src/TextInputWrapper.cpp +101 -0
- data/src/Texture.cpp +1 -1
- data/src/TrueTypeFont.cpp +2 -1
- data/src/Utility.cpp +11 -7
- data/src/Window.cpp +30 -39
- data/src/WindowWrapper.cpp +317 -0
- metadata +212 -42
- data/Gosu/AutoLink.hpp +0 -14
- data/Gosu/Bitmap.hpp +0 -113
- data/src/AudioToolboxFile.hpp +0 -210
- data/src/OggFile.hpp +0 -92
- data/src/SndFile.hpp +0 -174
- data/src/WinMain.cpp +0 -64
@@ -0,0 +1,50 @@
|
|
1
|
+
#include <Gosu/Audio.hpp>
|
2
|
+
#include <Gosu/Channel.h>
|
3
|
+
|
4
|
+
extern "C" {
|
5
|
+
|
6
|
+
Gosu_Channel *Gosu_Channel_create(Gosu_Channel *channel)
|
7
|
+
{
|
8
|
+
return channel;
|
9
|
+
}
|
10
|
+
|
11
|
+
bool Gosu_Channel_playing(Gosu_Channel *channel)
|
12
|
+
{
|
13
|
+
return reinterpret_cast<Gosu::Channel *>(channel)->playing();
|
14
|
+
}
|
15
|
+
void Gosu_Channel_pause(Gosu_Channel *channel)
|
16
|
+
{
|
17
|
+
reinterpret_cast<Gosu::Channel *>(channel)->pause();
|
18
|
+
}
|
19
|
+
bool Gosu_Channel_paused(Gosu_Channel *channel)
|
20
|
+
{
|
21
|
+
return reinterpret_cast<Gosu::Channel *>(channel)->paused();
|
22
|
+
}
|
23
|
+
void Gosu_Channel_resume(Gosu_Channel *channel)
|
24
|
+
{
|
25
|
+
reinterpret_cast<Gosu::Channel *>(channel)->resume();
|
26
|
+
}
|
27
|
+
void Gosu_Channel_stop(Gosu_Channel *channel)
|
28
|
+
{
|
29
|
+
reinterpret_cast<Gosu::Channel *>(channel)->stop();
|
30
|
+
}
|
31
|
+
|
32
|
+
void Gosu_Channel_set_volume(Gosu_Channel *channel, double volume)
|
33
|
+
{
|
34
|
+
reinterpret_cast<Gosu::Channel *>(channel)->set_volume(volume);
|
35
|
+
}
|
36
|
+
void Gosu_Channel_set_speed(Gosu_Channel *channel, double speed)
|
37
|
+
{
|
38
|
+
reinterpret_cast<Gosu::Channel *>(channel)->set_speed(speed);
|
39
|
+
}
|
40
|
+
void Gosu_Channel_set_pan(Gosu_Channel *channel, double pan)
|
41
|
+
{
|
42
|
+
reinterpret_cast<Gosu::Channel *>(channel)->set_pan(pan);
|
43
|
+
}
|
44
|
+
|
45
|
+
void Gosu_Channel_destroy(Gosu_Channel *channel)
|
46
|
+
{
|
47
|
+
delete (reinterpret_cast<Gosu::Channel *>(channel));
|
48
|
+
}
|
49
|
+
|
50
|
+
}
|
@@ -0,0 +1,126 @@
|
|
1
|
+
#include <Gosu/Color.hpp>
|
2
|
+
#include <Gosu/Color.h>
|
3
|
+
|
4
|
+
#ifdef __cplusplus
|
5
|
+
extern "C" {
|
6
|
+
#endif
|
7
|
+
|
8
|
+
unsigned Gosu_Color_create(unsigned argb)
|
9
|
+
{
|
10
|
+
return Gosu::Color(argb).argb();
|
11
|
+
}
|
12
|
+
unsigned Gosu_Color_create_argb(Gosu_Color_Channel a, Gosu_Color_Channel r, Gosu_Color_Channel g, Gosu_Color_Channel b)
|
13
|
+
{
|
14
|
+
return Gosu::Color(a, r, g, b).argb();
|
15
|
+
}
|
16
|
+
unsigned Gosu_Color_create_from_hsv(double h, double s, double v)
|
17
|
+
{
|
18
|
+
return Gosu::Color::from_hsv(h, s, v).argb();
|
19
|
+
}
|
20
|
+
unsigned Gosu_Color_create_from_ahsv(Gosu_Color_Channel alpha, double h, double s, double v)
|
21
|
+
{
|
22
|
+
return Gosu::Color::from_ahsv(alpha, h, s, v).argb();
|
23
|
+
}
|
24
|
+
|
25
|
+
Gosu_Color_Channel Gosu_Color_alpha(unsigned color)
|
26
|
+
{
|
27
|
+
return Gosu::Color(color).alpha();
|
28
|
+
}
|
29
|
+
Gosu_Color_Channel Gosu_Color_red(unsigned color)
|
30
|
+
{
|
31
|
+
return Gosu::Color(color).red();
|
32
|
+
}
|
33
|
+
Gosu_Color_Channel Gosu_Color_green(unsigned color)
|
34
|
+
{
|
35
|
+
return Gosu::Color(color).green();
|
36
|
+
}
|
37
|
+
Gosu_Color_Channel Gosu_Color_blue(unsigned color)
|
38
|
+
{
|
39
|
+
return Gosu::Color(color).blue();
|
40
|
+
}
|
41
|
+
|
42
|
+
unsigned Gosu_Color_set_alpha(unsigned color, Gosu_Color_Channel value)
|
43
|
+
{
|
44
|
+
Gosu::Color gosu_color = Gosu::Color(color);
|
45
|
+
gosu_color.set_alpha(value);
|
46
|
+
|
47
|
+
return gosu_color.argb();
|
48
|
+
}
|
49
|
+
unsigned Gosu_Color_set_red(unsigned color, Gosu_Color_Channel value)
|
50
|
+
{
|
51
|
+
Gosu::Color gosu_color = Gosu::Color(color);
|
52
|
+
gosu_color.set_red(value);
|
53
|
+
|
54
|
+
return gosu_color.argb();
|
55
|
+
}
|
56
|
+
unsigned Gosu_Color_set_green(unsigned color, Gosu_Color_Channel value)
|
57
|
+
{
|
58
|
+
Gosu::Color gosu_color = Gosu::Color(color);
|
59
|
+
gosu_color.set_green(value);
|
60
|
+
|
61
|
+
return gosu_color.argb();
|
62
|
+
}
|
63
|
+
unsigned Gosu_Color_set_blue(unsigned color, Gosu_Color_Channel value)
|
64
|
+
{
|
65
|
+
Gosu::Color gosu_color = Gosu::Color(color);
|
66
|
+
gosu_color.set_blue(value);
|
67
|
+
|
68
|
+
return gosu_color.argb();
|
69
|
+
}
|
70
|
+
|
71
|
+
double Gosu_Color_hue(unsigned color)
|
72
|
+
{
|
73
|
+
return Gosu::Color(color).hue();
|
74
|
+
}
|
75
|
+
double Gosu_Color_saturation(unsigned color)
|
76
|
+
{
|
77
|
+
return Gosu::Color(color).saturation();
|
78
|
+
}
|
79
|
+
double Gosu_Color_value(unsigned color)
|
80
|
+
{
|
81
|
+
return Gosu::Color(color).value();
|
82
|
+
}
|
83
|
+
|
84
|
+
unsigned Gosu_Color_set_hue(unsigned color, double value)
|
85
|
+
{
|
86
|
+
Gosu::Color gosu_color = Gosu::Color(color);
|
87
|
+
gosu_color.set_hue(value);
|
88
|
+
|
89
|
+
return gosu_color.argb();
|
90
|
+
}
|
91
|
+
unsigned Gosu_Color_set_saturation(unsigned color, double value)
|
92
|
+
{
|
93
|
+
Gosu::Color gosu_color = Gosu::Color(color);
|
94
|
+
gosu_color.set_saturation(value);
|
95
|
+
|
96
|
+
return gosu_color.argb();
|
97
|
+
}
|
98
|
+
unsigned Gosu_Color_set_value(unsigned color, double value)
|
99
|
+
{
|
100
|
+
Gosu::Color gosu_color = Gosu::Color(color);
|
101
|
+
gosu_color.set_value(value);
|
102
|
+
|
103
|
+
return gosu_color.argb();
|
104
|
+
}
|
105
|
+
|
106
|
+
unsigned Gosu_Color_argb(unsigned color)
|
107
|
+
{
|
108
|
+
return Gosu::Color(color).argb();
|
109
|
+
}
|
110
|
+
unsigned Gosu_Color_bgr(unsigned color)
|
111
|
+
{
|
112
|
+
return Gosu::Color(color).bgr();
|
113
|
+
}
|
114
|
+
unsigned Gosu_Color_abgr(unsigned color)
|
115
|
+
{
|
116
|
+
return Gosu::Color(color).abgr();
|
117
|
+
}
|
118
|
+
|
119
|
+
unsigned Gosu_Color_gl(unsigned color)
|
120
|
+
{
|
121
|
+
return color;
|
122
|
+
}
|
123
|
+
|
124
|
+
#ifdef __cplusplus
|
125
|
+
}
|
126
|
+
#endif
|
data/src/Constants.cpp
ADDED
@@ -0,0 +1,338 @@
|
|
1
|
+
#include <Gosu/Version.hpp>
|
2
|
+
#include <Gosu/Buttons.hpp>
|
3
|
+
#include <Gosu/GraphicsBase.hpp>
|
4
|
+
|
5
|
+
#ifdef __cplusplus
|
6
|
+
extern "C" {
|
7
|
+
#endif
|
8
|
+
|
9
|
+
const char *Gosu_version()
|
10
|
+
{
|
11
|
+
return Gosu::VERSION.c_str();
|
12
|
+
}
|
13
|
+
|
14
|
+
const char *Gosu_licenses()
|
15
|
+
{
|
16
|
+
return Gosu::LICENSES.c_str();
|
17
|
+
}
|
18
|
+
|
19
|
+
unsigned Gosu_MAJOR_VERSION = GOSU_MAJOR_VERSION;
|
20
|
+
unsigned Gosu_MINOR_VERSION = GOSU_MINOR_VERSION;
|
21
|
+
unsigned Gosu_POINT_VERSION = GOSU_POINT_VERSION;
|
22
|
+
|
23
|
+
// Alpha/Blend Modes
|
24
|
+
unsigned Gosu_AM_DEFAULT = Gosu::AM_DEFAULT;
|
25
|
+
unsigned Gosu_AM_INTERPOLATE = Gosu::AM_INTERPOLATE;
|
26
|
+
unsigned Gosu_AM_ADD = Gosu::AM_ADD;
|
27
|
+
unsigned Gosu_AM_MULTIPLY = Gosu::AM_MULTIPLY;
|
28
|
+
|
29
|
+
// Font Flags
|
30
|
+
unsigned Gosu_FF_BOLD = Gosu::FF_BOLD;
|
31
|
+
unsigned Gosu_FF_ITALIC = Gosu::FF_ITALIC;
|
32
|
+
unsigned Gosu_FF_UNDERLINE = Gosu::FF_UNDERLINE;
|
33
|
+
unsigned Gosu_FF_COMBINATIONS = Gosu::FF_COMBINATIONS;
|
34
|
+
|
35
|
+
// Alignment
|
36
|
+
unsigned Gosu_AL_LEFT = Gosu::AL_LEFT;
|
37
|
+
unsigned Gosu_AL_RIGHT = Gosu::AL_RIGHT;
|
38
|
+
unsigned Gosu_AL_CENTER = Gosu::AL_CENTER;
|
39
|
+
unsigned Gosu_AL_JUSTIFY = Gosu::AL_JUSTIFY;
|
40
|
+
|
41
|
+
// Image Flags
|
42
|
+
unsigned Gosu_IF_SMOOTH = Gosu::IF_SMOOTH;
|
43
|
+
unsigned Gosu_IF_TILEABLE_LEFT = Gosu::IF_TILEABLE_LEFT;
|
44
|
+
unsigned Gosu_IF_TILEABLE_TOP = Gosu::IF_TILEABLE_TOP;
|
45
|
+
unsigned Gosu_IF_TILEABLE_RIGHT = Gosu::IF_TILEABLE_RIGHT;
|
46
|
+
unsigned Gosu_IF_TILEABLE_BOTTOM = Gosu::IF_TILEABLE_BOTTOM;
|
47
|
+
unsigned Gosu_IF_TILEABLE = Gosu::IF_TILEABLE;
|
48
|
+
unsigned Gosu_IF_RETRO = Gosu::IF_RETRO;
|
49
|
+
|
50
|
+
unsigned Gosu_KB_ESCAPE = Gosu::KB_ESCAPE;
|
51
|
+
unsigned Gosu_KB_F1 = Gosu::KB_F1;
|
52
|
+
unsigned Gosu_KB_F2 = Gosu::KB_F2;
|
53
|
+
unsigned Gosu_KB_F3 = Gosu::KB_F3;
|
54
|
+
unsigned Gosu_KB_F4 = Gosu::KB_F4;
|
55
|
+
unsigned Gosu_KB_F5 = Gosu::KB_F5;
|
56
|
+
unsigned Gosu_KB_F6 = Gosu::KB_F6;
|
57
|
+
unsigned Gosu_KB_F7 = Gosu::KB_F7;
|
58
|
+
unsigned Gosu_KB_F8 = Gosu::KB_F8;
|
59
|
+
unsigned Gosu_KB_F9 = Gosu::KB_F9;
|
60
|
+
unsigned Gosu_KB_F10 = Gosu::KB_F10;
|
61
|
+
unsigned Gosu_KB_F11 = Gosu::KB_F11;
|
62
|
+
unsigned Gosu_KB_F12 = Gosu::KB_F12;
|
63
|
+
unsigned Gosu_KB_0 = Gosu::KB_0;
|
64
|
+
unsigned Gosu_KB_1 = Gosu::KB_1;
|
65
|
+
unsigned Gosu_KB_2 = Gosu::KB_2;
|
66
|
+
unsigned Gosu_KB_3 = Gosu::KB_3;
|
67
|
+
unsigned Gosu_KB_4 = Gosu::KB_4;
|
68
|
+
unsigned Gosu_KB_5 = Gosu::KB_5;
|
69
|
+
unsigned Gosu_KB_6 = Gosu::KB_6;
|
70
|
+
unsigned Gosu_KB_7 = Gosu::KB_7;
|
71
|
+
unsigned Gosu_KB_8 = Gosu::KB_8;
|
72
|
+
unsigned Gosu_KB_9 = Gosu::KB_9;
|
73
|
+
unsigned Gosu_KB_TAB = Gosu::KB_TAB;
|
74
|
+
unsigned Gosu_KB_RETURN = Gosu::KB_RETURN;
|
75
|
+
unsigned Gosu_KB_SPACE = Gosu::KB_SPACE;
|
76
|
+
unsigned Gosu_KB_LEFT_SHIFT = Gosu::KB_LEFT_SHIFT;
|
77
|
+
unsigned Gosu_KB_RIGHT_SHIFT = Gosu::KB_RIGHT_SHIFT;
|
78
|
+
unsigned Gosu_KB_LEFT_CONTROL = Gosu::KB_LEFT_CONTROL;
|
79
|
+
unsigned Gosu_KB_RIGHT_CONTROL = Gosu::KB_RIGHT_CONTROL;
|
80
|
+
unsigned Gosu_KB_LEFT_ALT = Gosu::KB_LEFT_ALT;
|
81
|
+
unsigned Gosu_KB_RIGHT_ALT = Gosu::KB_RIGHT_ALT;
|
82
|
+
unsigned Gosu_KB_LEFT_META = Gosu::KB_LEFT_META;
|
83
|
+
unsigned Gosu_KB_RIGHT_META = Gosu::KB_RIGHT_META;
|
84
|
+
unsigned Gosu_KB_BACKSPACE = Gosu::KB_BACKSPACE;
|
85
|
+
unsigned Gosu_KB_LEFT = Gosu::KB_LEFT;
|
86
|
+
unsigned Gosu_KB_RIGHT = Gosu::KB_RIGHT;
|
87
|
+
unsigned Gosu_KB_UP = Gosu::KB_UP;
|
88
|
+
unsigned Gosu_KB_DOWN = Gosu::KB_DOWN;
|
89
|
+
unsigned Gosu_KB_HOME = Gosu::KB_HOME;
|
90
|
+
unsigned Gosu_KB_END = Gosu::KB_END;
|
91
|
+
unsigned Gosu_KB_PRINT_SCREEN = Gosu::KB_PRINT_SCREEN;
|
92
|
+
unsigned Gosu_KB_SCROLL_LOCK = Gosu::KB_SCROLL_LOCK;
|
93
|
+
unsigned Gosu_KB_PAUSE = Gosu::KB_PAUSE;
|
94
|
+
unsigned Gosu_KB_INSERT = Gosu::KB_INSERT;
|
95
|
+
unsigned Gosu_KB_DELETE = Gosu::KB_DELETE;
|
96
|
+
unsigned Gosu_KB_PAGE_UP = Gosu::KB_PAGE_UP;
|
97
|
+
unsigned Gosu_KB_PAGE_DOWN = Gosu::KB_PAGE_DOWN;
|
98
|
+
unsigned Gosu_KB_ENTER = Gosu::KB_ENTER;
|
99
|
+
unsigned Gosu_KB_BACKTICK = Gosu::KB_BACKTICK;
|
100
|
+
unsigned Gosu_KB_MINUS = Gosu::KB_MINUS;
|
101
|
+
unsigned Gosu_KB_EQUALS = Gosu::KB_EQUALS;
|
102
|
+
unsigned Gosu_KB_LEFT_BRACKET = Gosu::KB_LEFT_BRACKET;
|
103
|
+
unsigned Gosu_KB_RIGHT_BRACKET = Gosu::KB_RIGHT_BRACKET;
|
104
|
+
unsigned Gosu_KB_BACKSLASH = Gosu::KB_BACKSLASH;
|
105
|
+
unsigned Gosu_KB_SEMICOLON = Gosu::KB_SEMICOLON;
|
106
|
+
unsigned Gosu_KB_APOSTROPHE = Gosu::KB_APOSTROPHE;
|
107
|
+
unsigned Gosu_KB_COMMA = Gosu::KB_COMMA;
|
108
|
+
unsigned Gosu_KB_PERIOD = Gosu::KB_PERIOD;
|
109
|
+
unsigned Gosu_KB_SLASH = Gosu::KB_SLASH;
|
110
|
+
unsigned Gosu_KB_CAPS_LOCK = Gosu::KB_CAPS_LOCK;
|
111
|
+
unsigned Gosu_KB_A = Gosu::KB_A;
|
112
|
+
unsigned Gosu_KB_B = Gosu::KB_B;
|
113
|
+
unsigned Gosu_KB_C = Gosu::KB_C;
|
114
|
+
unsigned Gosu_KB_D = Gosu::KB_D;
|
115
|
+
unsigned Gosu_KB_E = Gosu::KB_E;
|
116
|
+
unsigned Gosu_KB_F = Gosu::KB_F;
|
117
|
+
unsigned Gosu_KB_G = Gosu::KB_G;
|
118
|
+
unsigned Gosu_KB_H = Gosu::KB_H;
|
119
|
+
unsigned Gosu_KB_I = Gosu::KB_I;
|
120
|
+
unsigned Gosu_KB_J = Gosu::KB_J;
|
121
|
+
unsigned Gosu_KB_K = Gosu::KB_K;
|
122
|
+
unsigned Gosu_KB_L = Gosu::KB_L;
|
123
|
+
unsigned Gosu_KB_M = Gosu::KB_M;
|
124
|
+
unsigned Gosu_KB_N = Gosu::KB_N;
|
125
|
+
unsigned Gosu_KB_O = Gosu::KB_O;
|
126
|
+
unsigned Gosu_KB_P = Gosu::KB_P;
|
127
|
+
unsigned Gosu_KB_Q = Gosu::KB_Q;
|
128
|
+
unsigned Gosu_KB_R = Gosu::KB_R;
|
129
|
+
unsigned Gosu_KB_S = Gosu::KB_S;
|
130
|
+
unsigned Gosu_KB_T = Gosu::KB_T;
|
131
|
+
unsigned Gosu_KB_U = Gosu::KB_U;
|
132
|
+
unsigned Gosu_KB_V = Gosu::KB_V;
|
133
|
+
unsigned Gosu_KB_W = Gosu::KB_W;
|
134
|
+
unsigned Gosu_KB_X = Gosu::KB_X;
|
135
|
+
unsigned Gosu_KB_Y = Gosu::KB_Y;
|
136
|
+
unsigned Gosu_KB_Z = Gosu::KB_Z;
|
137
|
+
unsigned Gosu_KB_ISO = Gosu::KB_ISO;
|
138
|
+
unsigned Gosu_KB_NUMPAD_0 = Gosu::KB_NUMPAD_0;
|
139
|
+
unsigned Gosu_KB_NUMPAD_1 = Gosu::KB_NUMPAD_1;
|
140
|
+
unsigned Gosu_KB_NUMPAD_2 = Gosu::KB_NUMPAD_2;
|
141
|
+
unsigned Gosu_KB_NUMPAD_3 = Gosu::KB_NUMPAD_3;
|
142
|
+
unsigned Gosu_KB_NUMPAD_4 = Gosu::KB_NUMPAD_4;
|
143
|
+
unsigned Gosu_KB_NUMPAD_5 = Gosu::KB_NUMPAD_5;
|
144
|
+
unsigned Gosu_KB_NUMPAD_6 = Gosu::KB_NUMPAD_6;
|
145
|
+
unsigned Gosu_KB_NUMPAD_7 = Gosu::KB_NUMPAD_7;
|
146
|
+
unsigned Gosu_KB_NUMPAD_8 = Gosu::KB_NUMPAD_8;
|
147
|
+
unsigned Gosu_KB_NUMPAD_9 = Gosu::KB_NUMPAD_9;
|
148
|
+
unsigned Gosu_KB_NUMPAD_DELETE = Gosu::KB_NUMPAD_DELETE;
|
149
|
+
unsigned Gosu_KB_NUMPAD_PLUS = Gosu::KB_NUMPAD_PLUS;
|
150
|
+
unsigned Gosu_KB_NUMPAD_MINUS = Gosu::KB_NUMPAD_MINUS;
|
151
|
+
unsigned Gosu_KB_NUMPAD_MULTIPLY = Gosu::KB_NUMPAD_MULTIPLY;
|
152
|
+
unsigned Gosu_KB_NUMPAD_DIVIDE = Gosu::KB_NUMPAD_DIVIDE;
|
153
|
+
|
154
|
+
unsigned Gosu_MS_LEFT = Gosu::MS_LEFT;
|
155
|
+
unsigned Gosu_MS_MIDDLE = Gosu::MS_MIDDLE;
|
156
|
+
unsigned Gosu_MS_RIGHT = Gosu::MS_RIGHT;
|
157
|
+
unsigned Gosu_MS_WHEEL_UP = Gosu::MS_WHEEL_UP;
|
158
|
+
unsigned Gosu_MS_WHEEL_DOWN = Gosu::MS_WHEEL_DOWN;
|
159
|
+
unsigned Gosu_MS_OTHER_0 = Gosu::MS_OTHER_0;
|
160
|
+
unsigned Gosu_MS_OTHER_1 = Gosu::MS_OTHER_1;
|
161
|
+
unsigned Gosu_MS_OTHER_2 = Gosu::MS_OTHER_2;
|
162
|
+
unsigned Gosu_MS_OTHER_3 = Gosu::MS_OTHER_3;
|
163
|
+
unsigned Gosu_MS_OTHER_4 = Gosu::MS_OTHER_4;
|
164
|
+
unsigned Gosu_MS_OTHER_5 = Gosu::MS_OTHER_5;
|
165
|
+
unsigned Gosu_MS_OTHER_6 = Gosu::MS_OTHER_6;
|
166
|
+
unsigned Gosu_MS_OTHER_7 = Gosu::MS_OTHER_7;
|
167
|
+
|
168
|
+
unsigned Gosu_GP_DPAD_LEFT = Gosu::GP_DPAD_LEFT;
|
169
|
+
unsigned Gosu_GP_DPAD_RIGHT = Gosu::GP_DPAD_RIGHT;
|
170
|
+
unsigned Gosu_GP_DPAD_UP = Gosu::GP_DPAD_UP;
|
171
|
+
unsigned Gosu_GP_DPAD_DOWN = Gosu::GP_DPAD_DOWN;
|
172
|
+
unsigned Gosu_GP_BUTTON_0 = Gosu::GP_BUTTON_0;
|
173
|
+
unsigned Gosu_GP_BUTTON_1 = Gosu::GP_BUTTON_1;
|
174
|
+
unsigned Gosu_GP_BUTTON_2 = Gosu::GP_BUTTON_2;
|
175
|
+
unsigned Gosu_GP_BUTTON_3 = Gosu::GP_BUTTON_3;
|
176
|
+
unsigned Gosu_GP_BUTTON_4 = Gosu::GP_BUTTON_4;
|
177
|
+
unsigned Gosu_GP_BUTTON_5 = Gosu::GP_BUTTON_5;
|
178
|
+
unsigned Gosu_GP_BUTTON_6 = Gosu::GP_BUTTON_6;
|
179
|
+
unsigned Gosu_GP_BUTTON_7 = Gosu::GP_BUTTON_7;
|
180
|
+
unsigned Gosu_GP_BUTTON_8 = Gosu::GP_BUTTON_8;
|
181
|
+
unsigned Gosu_GP_BUTTON_9 = Gosu::GP_BUTTON_9;
|
182
|
+
unsigned Gosu_GP_BUTTON_10 = Gosu::GP_BUTTON_10;
|
183
|
+
unsigned Gosu_GP_BUTTON_11 = Gosu::GP_BUTTON_11;
|
184
|
+
unsigned Gosu_GP_BUTTON_12 = Gosu::GP_BUTTON_12;
|
185
|
+
unsigned Gosu_GP_BUTTON_13 = Gosu::GP_BUTTON_13;
|
186
|
+
unsigned Gosu_GP_BUTTON_14 = Gosu::GP_BUTTON_14;
|
187
|
+
unsigned Gosu_GP_BUTTON_15 = Gosu::GP_BUTTON_15;
|
188
|
+
|
189
|
+
unsigned Gosu_GP_0_DPAD_LEFT = Gosu::GP_0_DPAD_LEFT;
|
190
|
+
unsigned Gosu_GP_0_DPAD_RIGHT = Gosu::GP_0_DPAD_RIGHT;
|
191
|
+
unsigned Gosu_GP_0_DPAD_UP = Gosu::GP_0_DPAD_UP;
|
192
|
+
unsigned Gosu_GP_0_DPAD_DOWN = Gosu::GP_0_DPAD_DOWN;
|
193
|
+
unsigned Gosu_GP_0_BUTTON_0 = Gosu::GP_0_BUTTON_0;
|
194
|
+
unsigned Gosu_GP_0_BUTTON_1 = Gosu::GP_0_BUTTON_1;
|
195
|
+
unsigned Gosu_GP_0_BUTTON_2 = Gosu::GP_0_BUTTON_2;
|
196
|
+
unsigned Gosu_GP_0_BUTTON_3 = Gosu::GP_0_BUTTON_3;
|
197
|
+
unsigned Gosu_GP_0_BUTTON_4 = Gosu::GP_0_BUTTON_4;
|
198
|
+
unsigned Gosu_GP_0_BUTTON_5 = Gosu::GP_0_BUTTON_5;
|
199
|
+
unsigned Gosu_GP_0_BUTTON_6 = Gosu::GP_0_BUTTON_6;
|
200
|
+
unsigned Gosu_GP_0_BUTTON_7 = Gosu::GP_0_BUTTON_7;
|
201
|
+
unsigned Gosu_GP_0_BUTTON_8 = Gosu::GP_0_BUTTON_8;
|
202
|
+
unsigned Gosu_GP_0_BUTTON_9 = Gosu::GP_0_BUTTON_9;
|
203
|
+
unsigned Gosu_GP_0_BUTTON_10 = Gosu::GP_0_BUTTON_10;
|
204
|
+
unsigned Gosu_GP_0_BUTTON_11 = Gosu::GP_0_BUTTON_11;
|
205
|
+
unsigned Gosu_GP_0_BUTTON_12 = Gosu::GP_0_BUTTON_12;
|
206
|
+
unsigned Gosu_GP_0_BUTTON_13 = Gosu::GP_0_BUTTON_13;
|
207
|
+
unsigned Gosu_GP_0_BUTTON_14 = Gosu::GP_0_BUTTON_14;
|
208
|
+
unsigned Gosu_GP_0_BUTTON_15 = Gosu::GP_0_BUTTON_15;
|
209
|
+
|
210
|
+
unsigned Gosu_GP_1_DPAD_LEFT = Gosu::GP_1_DPAD_LEFT;
|
211
|
+
unsigned Gosu_GP_1_DPAD_RIGHT = Gosu::GP_1_DPAD_RIGHT;
|
212
|
+
unsigned Gosu_GP_1_DPAD_UP = Gosu::GP_1_DPAD_UP;
|
213
|
+
unsigned Gosu_GP_1_DPAD_DOWN = Gosu::GP_1_DPAD_DOWN;
|
214
|
+
unsigned Gosu_GP_1_BUTTON_0 = Gosu::GP_1_BUTTON_0;
|
215
|
+
unsigned Gosu_GP_1_BUTTON_1 = Gosu::GP_1_BUTTON_1;
|
216
|
+
unsigned Gosu_GP_1_BUTTON_2 = Gosu::GP_1_BUTTON_2;
|
217
|
+
unsigned Gosu_GP_1_BUTTON_3 = Gosu::GP_1_BUTTON_3;
|
218
|
+
unsigned Gosu_GP_1_BUTTON_4 = Gosu::GP_1_BUTTON_4;
|
219
|
+
unsigned Gosu_GP_1_BUTTON_5 = Gosu::GP_1_BUTTON_5;
|
220
|
+
unsigned Gosu_GP_1_BUTTON_6 = Gosu::GP_1_BUTTON_6;
|
221
|
+
unsigned Gosu_GP_1_BUTTON_7 = Gosu::GP_1_BUTTON_7;
|
222
|
+
unsigned Gosu_GP_1_BUTTON_8 = Gosu::GP_1_BUTTON_8;
|
223
|
+
unsigned Gosu_GP_1_BUTTON_9 = Gosu::GP_1_BUTTON_9;
|
224
|
+
unsigned Gosu_GP_1_BUTTON_10 = Gosu::GP_1_BUTTON_10;
|
225
|
+
unsigned Gosu_GP_1_BUTTON_11 = Gosu::GP_1_BUTTON_11;
|
226
|
+
unsigned Gosu_GP_1_BUTTON_12 = Gosu::GP_1_BUTTON_12;
|
227
|
+
unsigned Gosu_GP_1_BUTTON_13 = Gosu::GP_1_BUTTON_13;
|
228
|
+
unsigned Gosu_GP_1_BUTTON_14 = Gosu::GP_1_BUTTON_14;
|
229
|
+
unsigned Gosu_GP_1_BUTTON_15 = Gosu::GP_1_BUTTON_15;
|
230
|
+
|
231
|
+
unsigned Gosu_GP_2_DPAD_LEFT = Gosu::GP_2_DPAD_LEFT;
|
232
|
+
unsigned Gosu_GP_2_DPAD_RIGHT = Gosu::GP_2_DPAD_RIGHT;
|
233
|
+
unsigned Gosu_GP_2_DPAD_UP = Gosu::GP_2_DPAD_UP;
|
234
|
+
unsigned Gosu_GP_2_DPAD_DOWN = Gosu::GP_2_DPAD_DOWN;
|
235
|
+
unsigned Gosu_GP_2_BUTTON_0 = Gosu::GP_2_BUTTON_0;
|
236
|
+
unsigned Gosu_GP_2_BUTTON_1 = Gosu::GP_2_BUTTON_1;
|
237
|
+
unsigned Gosu_GP_2_BUTTON_2 = Gosu::GP_2_BUTTON_2;
|
238
|
+
unsigned Gosu_GP_2_BUTTON_3 = Gosu::GP_2_BUTTON_3;
|
239
|
+
unsigned Gosu_GP_2_BUTTON_4 = Gosu::GP_2_BUTTON_4;
|
240
|
+
unsigned Gosu_GP_2_BUTTON_5 = Gosu::GP_2_BUTTON_5;
|
241
|
+
unsigned Gosu_GP_2_BUTTON_6 = Gosu::GP_2_BUTTON_6;
|
242
|
+
unsigned Gosu_GP_2_BUTTON_7 = Gosu::GP_2_BUTTON_7;
|
243
|
+
unsigned Gosu_GP_2_BUTTON_8 = Gosu::GP_2_BUTTON_8;
|
244
|
+
unsigned Gosu_GP_2_BUTTON_9 = Gosu::GP_2_BUTTON_9;
|
245
|
+
unsigned Gosu_GP_2_BUTTON_10 = Gosu::GP_2_BUTTON_10;
|
246
|
+
unsigned Gosu_GP_2_BUTTON_11 = Gosu::GP_2_BUTTON_11;
|
247
|
+
unsigned Gosu_GP_2_BUTTON_12 = Gosu::GP_2_BUTTON_12;
|
248
|
+
unsigned Gosu_GP_2_BUTTON_13 = Gosu::GP_2_BUTTON_13;
|
249
|
+
unsigned Gosu_GP_2_BUTTON_14 = Gosu::GP_2_BUTTON_14;
|
250
|
+
unsigned Gosu_GP_2_BUTTON_15 = Gosu::GP_2_BUTTON_15;
|
251
|
+
|
252
|
+
unsigned Gosu_GP_3_DPAD_LEFT = Gosu::GP_3_DPAD_LEFT;
|
253
|
+
unsigned Gosu_GP_3_DPAD_RIGHT = Gosu::GP_3_DPAD_RIGHT;
|
254
|
+
unsigned Gosu_GP_3_DPAD_UP = Gosu::GP_3_DPAD_UP;
|
255
|
+
unsigned Gosu_GP_3_DPAD_DOWN = Gosu::GP_3_DPAD_DOWN;
|
256
|
+
unsigned Gosu_GP_3_BUTTON_0 = Gosu::GP_3_BUTTON_0;
|
257
|
+
unsigned Gosu_GP_3_BUTTON_1 = Gosu::GP_3_BUTTON_1;
|
258
|
+
unsigned Gosu_GP_3_BUTTON_2 = Gosu::GP_3_BUTTON_2;
|
259
|
+
unsigned Gosu_GP_3_BUTTON_3 = Gosu::GP_3_BUTTON_3;
|
260
|
+
unsigned Gosu_GP_3_BUTTON_4 = Gosu::GP_3_BUTTON_4;
|
261
|
+
unsigned Gosu_GP_3_BUTTON_5 = Gosu::GP_3_BUTTON_5;
|
262
|
+
unsigned Gosu_GP_3_BUTTON_6 = Gosu::GP_3_BUTTON_6;
|
263
|
+
unsigned Gosu_GP_3_BUTTON_7 = Gosu::GP_3_BUTTON_7;
|
264
|
+
unsigned Gosu_GP_3_BUTTON_8 = Gosu::GP_3_BUTTON_8;
|
265
|
+
unsigned Gosu_GP_3_BUTTON_9 = Gosu::GP_3_BUTTON_9;
|
266
|
+
unsigned Gosu_GP_3_BUTTON_10 = Gosu::GP_3_BUTTON_10;
|
267
|
+
unsigned Gosu_GP_3_BUTTON_11 = Gosu::GP_3_BUTTON_11;
|
268
|
+
unsigned Gosu_GP_3_BUTTON_12 = Gosu::GP_3_BUTTON_12;
|
269
|
+
unsigned Gosu_GP_3_BUTTON_13 = Gosu::GP_3_BUTTON_13;
|
270
|
+
unsigned Gosu_GP_3_BUTTON_14 = Gosu::GP_3_BUTTON_14;
|
271
|
+
unsigned Gosu_GP_3_BUTTON_15 = Gosu::GP_3_BUTTON_15;
|
272
|
+
|
273
|
+
unsigned Gosu_GP_LEFT = Gosu::GP_LEFT;
|
274
|
+
unsigned Gosu_GP_RIGHT = Gosu::GP_RIGHT;
|
275
|
+
unsigned Gosu_GP_UP = Gosu::GP_UP;
|
276
|
+
unsigned Gosu_GP_DOWN = Gosu::GP_DOWN;
|
277
|
+
|
278
|
+
unsigned Gosu_GP_0_LEFT = Gosu::GP_0_LEFT;
|
279
|
+
unsigned Gosu_GP_0_RIGHT = Gosu::GP_0_RIGHT;
|
280
|
+
unsigned Gosu_GP_0_UP = Gosu::GP_0_UP;
|
281
|
+
unsigned Gosu_GP_0_DOWN = Gosu::GP_0_DOWN;
|
282
|
+
|
283
|
+
unsigned Gosu_GP_1_LEFT = Gosu::GP_1_LEFT;
|
284
|
+
unsigned Gosu_GP_1_RIGHT = Gosu::GP_1_RIGHT;
|
285
|
+
unsigned Gosu_GP_1_UP = Gosu::GP_1_UP;
|
286
|
+
unsigned Gosu_GP_1_DOWN = Gosu::GP_1_DOWN;
|
287
|
+
|
288
|
+
unsigned Gosu_GP_2_LEFT = Gosu::GP_2_LEFT;
|
289
|
+
unsigned Gosu_GP_2_RIGHT = Gosu::GP_2_RIGHT;
|
290
|
+
unsigned Gosu_GP_2_UP = Gosu::GP_2_UP;
|
291
|
+
unsigned Gosu_GP_2_DOWN = Gosu::GP_2_DOWN;
|
292
|
+
|
293
|
+
unsigned Gosu_GP_3_LEFT = Gosu::GP_3_LEFT;
|
294
|
+
unsigned Gosu_GP_3_RIGHT = Gosu::GP_3_RIGHT;
|
295
|
+
unsigned Gosu_GP_3_UP = Gosu::GP_3_UP;
|
296
|
+
unsigned Gosu_GP_3_DOWN = Gosu::GP_3_DOWN;
|
297
|
+
|
298
|
+
unsigned Gosu_GP_LEFT_STICK_X_AXIS = Gosu::GP_LEFT_STICK_X_AXIS;
|
299
|
+
unsigned Gosu_GP_LEFT_STICK_Y_AXIS = Gosu::GP_LEFT_STICK_Y_AXIS;
|
300
|
+
unsigned Gosu_GP_RIGHT_STICK_X_AXIS = Gosu::GP_RIGHT_STICK_X_AXIS;
|
301
|
+
unsigned Gosu_GP_RIGHT_STICK_Y_AXIS = Gosu::GP_RIGHT_STICK_Y_AXIS;
|
302
|
+
unsigned Gosu_GP_LEFT_TRIGGER_AXIS = Gosu::GP_LEFT_TRIGGER_AXIS;
|
303
|
+
unsigned Gosu_GP_RIGHT_TRIGGER_AXIS = Gosu::GP_RIGHT_TRIGGER_AXIS;
|
304
|
+
|
305
|
+
unsigned Gosu_GP_0_LEFT_STICK_X_AXIS = Gosu::GP_0_LEFT_STICK_X_AXIS;
|
306
|
+
unsigned Gosu_GP_0_LEFT_STICK_Y_AXIS = Gosu::GP_0_LEFT_STICK_Y_AXIS;
|
307
|
+
unsigned Gosu_GP_0_RIGHT_STICK_X_AXIS = Gosu::GP_0_RIGHT_STICK_X_AXIS;
|
308
|
+
unsigned Gosu_GP_0_RIGHT_STICK_Y_AXIS = Gosu::GP_0_RIGHT_STICK_Y_AXIS;
|
309
|
+
unsigned Gosu_GP_0_LEFT_TRIGGER_AXIS = Gosu::GP_0_LEFT_TRIGGER_AXIS;
|
310
|
+
unsigned Gosu_GP_0_RIGHT_TRIGGER_AXIS = Gosu::GP_0_RIGHT_TRIGGER_AXIS;
|
311
|
+
|
312
|
+
unsigned Gosu_GP_1_LEFT_STICK_X_AXIS = Gosu::GP_1_LEFT_STICK_X_AXIS;
|
313
|
+
unsigned Gosu_GP_1_LEFT_STICK_Y_AXIS = Gosu::GP_1_LEFT_STICK_Y_AXIS;
|
314
|
+
unsigned Gosu_GP_1_RIGHT_STICK_X_AXIS = Gosu::GP_1_RIGHT_STICK_X_AXIS;
|
315
|
+
unsigned Gosu_GP_1_RIGHT_STICK_Y_AXIS = Gosu::GP_1_RIGHT_STICK_Y_AXIS;
|
316
|
+
unsigned Gosu_GP_1_LEFT_TRIGGER_AXIS = Gosu::GP_1_LEFT_TRIGGER_AXIS;
|
317
|
+
unsigned Gosu_GP_1_RIGHT_TRIGGER_AXIS = Gosu::GP_1_RIGHT_TRIGGER_AXIS;
|
318
|
+
|
319
|
+
unsigned Gosu_GP_2_LEFT_STICK_X_AXIS = Gosu::GP_2_LEFT_STICK_X_AXIS;
|
320
|
+
unsigned Gosu_GP_2_LEFT_STICK_Y_AXIS = Gosu::GP_2_LEFT_STICK_Y_AXIS;
|
321
|
+
unsigned Gosu_GP_2_RIGHT_STICK_X_AXIS = Gosu::GP_2_RIGHT_STICK_X_AXIS;
|
322
|
+
unsigned Gosu_GP_2_RIGHT_STICK_Y_AXIS = Gosu::GP_2_RIGHT_STICK_Y_AXIS;
|
323
|
+
unsigned Gosu_GP_2_LEFT_TRIGGER_AXIS = Gosu::GP_2_LEFT_TRIGGER_AXIS;
|
324
|
+
unsigned Gosu_GP_2_RIGHT_TRIGGER_AXIS = Gosu::GP_2_RIGHT_TRIGGER_AXIS;
|
325
|
+
|
326
|
+
unsigned Gosu_GP_3_LEFT_STICK_X_AXIS = Gosu::GP_3_LEFT_STICK_X_AXIS;
|
327
|
+
unsigned Gosu_GP_3_LEFT_STICK_Y_AXIS = Gosu::GP_3_LEFT_STICK_Y_AXIS;
|
328
|
+
unsigned Gosu_GP_3_RIGHT_STICK_X_AXIS = Gosu::GP_3_RIGHT_STICK_X_AXIS;
|
329
|
+
unsigned Gosu_GP_3_RIGHT_STICK_Y_AXIS = Gosu::GP_3_RIGHT_STICK_Y_AXIS;
|
330
|
+
unsigned Gosu_GP_3_LEFT_TRIGGER_AXIS = Gosu::GP_3_LEFT_TRIGGER_AXIS;
|
331
|
+
unsigned Gosu_GP_3_RIGHT_TRIGGER_AXIS = Gosu::GP_3_RIGHT_TRIGGER_AXIS;
|
332
|
+
|
333
|
+
unsigned Gosu_NUM_GAMEPADS = Gosu::NUM_GAMEPADS;
|
334
|
+
unsigned Gosu_NO_BUTTON = Gosu::NO_BUTTON;
|
335
|
+
|
336
|
+
#ifdef __cplusplus
|
337
|
+
}
|
338
|
+
#endif
|