rubysdl 1.3.1 → 2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/MANIFEST +22 -2
- data/NEWS.en +80 -0
- data/NEWS.ja +83 -0
- data/README.en +2 -1
- data/README.ja +2 -2
- data/doc-en/Makefile +18 -0
- data/doc-en/cdrom.rsd +417 -0
- data/doc-en/collision.rsd +174 -0
- data/doc-en/event.rsd +1476 -0
- data/doc-en/font.rsd +811 -0
- data/doc-en/general.rsd +43 -0
- data/doc-en/init.rsd +168 -0
- data/doc-en/joystick.rsd +401 -0
- data/doc-en/mixer.rsd +869 -0
- data/doc-en/mpeg.rsd +585 -0
- data/doc-en/opengl.rsd +155 -0
- data/doc-en/sdlskk.rsd +472 -0
- data/doc-en/time.rsd +46 -0
- data/doc-en/video.rsd +2806 -0
- data/doc-en/wm.rsd +112 -0
- data/doc/Makefile +1 -1
- data/doc/cdrom.rsd +3 -3
- data/doc/event.rsd +178 -179
- data/doc/general.rsd +10 -0
- data/doc/init.rsd +2 -2
- data/doc/joystick.rsd +29 -5
- data/doc/mixer.rsd +20 -0
- data/doc/rsd.rb +42 -9
- data/doc/sdlskk.rsd +7 -7
- data/doc/video.rsd +461 -168
- data/doc/wm.rsd +2 -2
- data/extconf.rb +1 -8
- data/lib/rubysdl_aliases.rb +52 -190
- data/lib/rubysdl_compatible_ver1.rb +243 -0
- data/lib/sdl.rb +58 -92
- data/rubysdl.h +59 -68
- data/rubysdl_cdrom.c +125 -102
- data/{rubysdl_doc.en.rd → rubysdl_doc_old.en.rd} +3 -2
- data/rubysdl_event.c +318 -255
- data/rubysdl_event_key.c +299 -287
- data/rubysdl_image.c +37 -13
- data/rubysdl_joystick.c +180 -67
- data/rubysdl_kanji.c +61 -75
- data/rubysdl_main.c +65 -138
- data/rubysdl_mixer.c +339 -214
- data/rubysdl_mouse.c +50 -43
- data/rubysdl_opengl.c +31 -28
- data/rubysdl_pixel.c +17 -28
- data/rubysdl_ref.en.html +5658 -0
- data/rubysdl_ref.en.rd +6337 -0
- data/rubysdl_ref.html +2253 -1964
- data/rubysdl_ref.rd +823 -469
- data/rubysdl_rwops.c +9 -6
- data/rubysdl_sdlskk.c +137 -165
- data/rubysdl_sge_video.c +355 -469
- data/rubysdl_smpeg.c +189 -190
- data/rubysdl_time.c +1 -1
- data/rubysdl_ttf.c +147 -215
- data/rubysdl_video.c +486 -405
- data/rubysdl_wm.c +30 -30
- data/sample/aadraw.rb +9 -9
- data/sample/alpha.rb +12 -13
- data/sample/alphadraw.rb +10 -10
- data/sample/bfont.rb +4 -4
- data/sample/cdrom.rb +11 -4
- data/sample/collision.rb +20 -20
- data/sample/cursor.rb +5 -5
- data/sample/ellipses.rb +20 -16
- data/sample/event2.rb +11 -9
- data/sample/font.rb +4 -4
- data/sample/fpstimer.rb +3 -3
- data/sample/icon.bmp.gz +0 -0
- data/sample/icon.png +0 -0
- data/sample/joy2.rb +14 -14
- data/sample/kanji.rb +7 -7
- data/sample/load_from_io.rb +44 -0
- data/sample/movesp.rb +13 -12
- data/sample/playmod.rb +2 -3
- data/sample/plaympeg.rb +8 -8
- data/sample/playwave.rb +5 -6
- data/sample/sdlskk.rb +11 -11
- data/sample/sgetest.rb +14 -12
- data/sample/stetris.rb +12 -13
- data/sample/testgl.rb +13 -14
- data/sample/testsprite.rb +12 -11
- data/sample/transformblit.rb +23 -22
- metadata +62 -35
- data/rubysdl_event2.c +0 -417
data/doc-en/wm.rsd
ADDED
@@ -0,0 +1,112 @@
|
|
1
|
+
= Window Management
|
2
|
+
* ((<Window Management Overview>))
|
3
|
+
* ((<Methods for Window Management>))
|
4
|
+
TOC
|
5
|
+
|
6
|
+
== Window Management Overview
|
7
|
+
SDL provides a small set of window management functions
|
8
|
+
which allow applications to change their title and toggle
|
9
|
+
from windowed mode to fullscreen (if available)
|
10
|
+
|
11
|
+
== Methods for Window Management
|
12
|
+
%%%
|
13
|
+
NAME caption
|
14
|
+
MOD WM
|
15
|
+
TYPE .
|
16
|
+
PURPOSE Gets the window title and icon name.
|
17
|
+
RVAL [String, String]
|
18
|
+
|
19
|
+
PROTO
|
20
|
+
caption
|
21
|
+
|
22
|
+
DESC
|
23
|
+
Returns the window title and icon name as an array with two element.
|
24
|
+
|
25
|
+
SEEALSO
|
26
|
+
WM.set_caption
|
27
|
+
|
28
|
+
%%
|
29
|
+
NAME set_caption
|
30
|
+
MOD WM
|
31
|
+
TYPE .
|
32
|
+
PURPOSE Sets the window tile and icon name.
|
33
|
+
|
34
|
+
PROTO
|
35
|
+
set_caption(title, icon)
|
36
|
+
setCaption(title, icon)
|
37
|
+
|
38
|
+
DESC
|
39
|
+
Sets the title-bar and icon name of the display window.
|
40
|
+
|
41
|
+
SEEALSO
|
42
|
+
WM.caption
|
43
|
+
WM.icon=
|
44
|
+
|
45
|
+
%%
|
46
|
+
NAME icon=
|
47
|
+
MOD WM
|
48
|
+
TYPE .
|
49
|
+
PURPOSE Sets the icon for the display window.
|
50
|
+
|
51
|
+
PROTO
|
52
|
+
icon=(icon_image)
|
53
|
+
|
54
|
+
DESC
|
55
|
+
Sets the icon for the display window. Win32 icons must be 32x32.
|
56
|
+
|
57
|
+
This function must be called before the first call to
|
58
|
+
@[Screen.open].
|
59
|
+
$[icon_image] should be an instance of @[Surface]
|
60
|
+
|
61
|
+
EXAMPLE
|
62
|
+
SDL::WM.icon = SDL::Surface.load_bmp("icon.bmp")
|
63
|
+
|
64
|
+
SEEALSO
|
65
|
+
set_video_mode
|
66
|
+
WM.caption
|
67
|
+
|
68
|
+
%%
|
69
|
+
NAME iconify
|
70
|
+
MOD WM
|
71
|
+
TYPE .
|
72
|
+
PURPOSE Iconify/Minimise the window
|
73
|
+
|
74
|
+
PROTO
|
75
|
+
iconify
|
76
|
+
|
77
|
+
DESC
|
78
|
+
If the application is running in a window managed environment
|
79
|
+
SDL attempts to iconify/minimise
|
80
|
+
it. If this method is successful,
|
81
|
+
the application will receive a @[Event::APPACTIVE]
|
82
|
+
loss event.
|
83
|
+
|
84
|
+
EXCEPTION *
|
85
|
+
|
86
|
+
%%
|
87
|
+
NAME grab_input
|
88
|
+
MOD WM
|
89
|
+
TYPE .
|
90
|
+
PURPOSE Grabs mouse and keyboard input.
|
91
|
+
RVAL Integer
|
92
|
+
|
93
|
+
PROTO
|
94
|
+
grab_input(mode)
|
95
|
+
grabInput(mode)
|
96
|
+
|
97
|
+
DESC
|
98
|
+
Grabbing means that the mouse is confined to the application window,
|
99
|
+
and nearly all keyboard input is passed directly to the application,
|
100
|
+
and not interpreted by a window manager, if any.
|
101
|
+
|
102
|
+
You can use following three constants as $[mode].
|
103
|
+
* SDL::WM::GRAB_QUERY
|
104
|
+
* SDL::WM::GRAB_OFF
|
105
|
+
* SDL::WM::GRAB_ON
|
106
|
+
|
107
|
+
When $[mode] is SDL::WM::GRAB_QUERY,
|
108
|
+
the grab mode is not changed, but the current grab mode is returned.
|
109
|
+
|
110
|
+
RET
|
111
|
+
Returns the current/new mode.
|
112
|
+
|
data/doc/Makefile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
RSD = ruby rsd.rb
|
3
|
-
RDFILES = general.rd init.rd video.rd wm.rd event.rd joystick.rd cdrom.rd mixer.rd time.rd font.rd collision.rd sdlskk.rd mpeg.rd
|
3
|
+
RDFILES = general.rd init.rd video.rd opengl.rd wm.rd event.rd joystick.rd cdrom.rd mixer.rd time.rd font.rd collision.rd sdlskk.rd mpeg.rd
|
4
4
|
RD2 = rd2
|
5
5
|
RD2OPT = -r rd/rd2html-lib.rb --html-lang=ja --html-charset=EUC-JP
|
6
6
|
|
data/doc/cdrom.rsd
CHANGED
@@ -213,15 +213,15 @@ EXAMPLE
|
|
213
213
|
# CD �������
|
214
214
|
if cdrom.in_drive?
|
215
215
|
cdrom.play_tracks 0, 0, 0, 0
|
216
|
-
|
216
|
+
end
|
217
217
|
# �ǽ�Υȥ�å������
|
218
218
|
if cdrom.in_drive?
|
219
219
|
cdrom.play_tracks 0, 0, 1, 0
|
220
|
-
|
220
|
+
end
|
221
221
|
# 2 ���ܤΥȥ�å��κǽ餫�� 15 �ä����
|
222
222
|
if cdrom.in_drive?
|
223
223
|
cdrom.play_tracks 1, 0, 0, SDL::CD::FPS*15
|
224
|
-
|
224
|
+
end
|
225
225
|
SEEALSO
|
226
226
|
CD#play
|
227
227
|
CD#status
|
data/doc/event.rsd
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
= Event
|
2
2
|
* ((<Event system����>))
|
3
|
-
* ((<SDL::
|
4
|
-
* ((<SDL::
|
5
|
-
* ((<SDL::
|
6
|
-
* ((<SDL::
|
7
|
-
* ((<SDL::
|
8
|
-
* ((<SDL::
|
9
|
-
* ((<SDL::
|
10
|
-
* ((<SDL::
|
11
|
-
* ((<SDL::
|
12
|
-
* ((<SDL::
|
13
|
-
* ((<SDL::
|
14
|
-
* ((<SDL::
|
15
|
-
* ((<SDL::
|
16
|
-
* ((<SDL::
|
17
|
-
* ((<SDL::
|
18
|
-
* ((<SDL::
|
3
|
+
* ((<SDL::Event>))
|
4
|
+
* ((<SDL::Event::Active>))
|
5
|
+
* ((<SDL::Event::KeyDown>))
|
6
|
+
* ((<SDL::Event::KeyUp>))
|
7
|
+
* ((<SDL::Event::MouseMotion>))
|
8
|
+
* ((<SDL::Event::MouseButtonDown>))
|
9
|
+
* ((<SDL::Event::MouseButtonUp>))
|
10
|
+
* ((<SDL::Event::JoyAxis>))
|
11
|
+
* ((<SDL::Event::JoyBall>))
|
12
|
+
* ((<SDL::Event::JoyHat>))
|
13
|
+
* ((<SDL::Event::JoyButtonDown>))
|
14
|
+
* ((<SDL::Event::JoyButtonUp>))
|
15
|
+
* ((<SDL::Event::Quit>))
|
16
|
+
* ((<SDL::Event::SysWM>))
|
17
|
+
* ((<SDL::Event::VideoResize>))
|
18
|
+
* ((<SDL::Event::VideoExpose>))
|
19
19
|
* ((<SDL::Key>))
|
20
20
|
* ((<SDL::Mouse>))
|
21
21
|
* Event��Ϣ��å�
|
@@ -29,40 +29,40 @@ TOC
|
|
29
29
|
����Ū�ˤϡ�SDL �Ͻ��������ޤ��Ե����Ƥ������ƤΥ��٥�Ȥ٥�ȥ��塼��
|
30
30
|
��Ǽ���ޤ���
|
31
31
|
|
32
|
-
@[
|
32
|
+
@[Event.poll] �� @[Event.wait] �Τ褦�ʥ�åɤ�Ȥ����Ȥǡ�
|
33
33
|
�Ե����Ƥ������ϥ��٥�Ȥ��ꡢ�������뤳�Ȥ��Ǥ��ޤ���
|
34
34
|
|
35
|
-
Ruby/SDL�ˤ����륤�٥�Ƚ����θ��ϡ�@[
|
36
|
-
���٥�ȥ��塼���Ȥ�@[
|
37
|
-
�ߤʤ����Ȥ��Ǥ��ޤ��������Υ��֥������Ȥ�@[
|
35
|
+
Ruby/SDL�ˤ����륤�٥�Ƚ����θ��ϡ�@[Event]�Υ��֥��饹���Ǥ���
|
36
|
+
���٥�ȥ��塼���Ȥ�@[Event](�Υ��֥��饹)�Υ��������
|
37
|
+
�ߤʤ����Ȥ��Ǥ��ޤ��������Υ��֥������Ȥ�@[Event.poll]��Ȥä�
|
38
38
|
���塼�����ɤߤ����졢
|
39
39
|
�����Ƥ����˳�Ǽ���줿����ν����ץꥱ��������ޤ���
|
40
40
|
|
41
|
-
@[
|
42
|
-
* @[
|
43
|
-
* @[
|
44
|
-
* @[
|
45
|
-
* @[
|
46
|
-
* @[
|
47
|
-
* @[
|
48
|
-
* @[
|
49
|
-
* @[
|
50
|
-
* @[
|
51
|
-
* @[
|
52
|
-
* @[
|
53
|
-
* @[
|
54
|
-
* @[
|
55
|
-
* @[
|
56
|
-
* @[
|
41
|
+
@[Event]�Υ��֥��饹�ϰʲ����̤�Ǥ���
|
42
|
+
* @[Event::Active]
|
43
|
+
* @[Event::KeyDown]
|
44
|
+
* @[Event::KeyUp]
|
45
|
+
* @[Event::MouseMotion]
|
46
|
+
* @[Event::MouseButtonDown]
|
47
|
+
* @[Event::MouseButtonUp]
|
48
|
+
* @[Event::JoyAxis]
|
49
|
+
* @[Event::JoyBall]
|
50
|
+
* @[Event::JoyHat]
|
51
|
+
* @[Event::JoyButtonDown]
|
52
|
+
* @[Event::JoyButtonUp]
|
53
|
+
* @[Event::Quit]
|
54
|
+
* @[Event::SysWM]
|
55
|
+
* @[Event::VideoResize]
|
56
|
+
* @[Event::VideoExpose]
|
57
57
|
|
58
58
|
���٥�ȥ��饹�ˤϰʲ�����Ĥ����Ӥ�����ޤ���
|
59
59
|
* ���塼���饤�٥�Ȥ��ɤ߽Ф�
|
60
60
|
* ���塼�˥��٥�Ȥ���Ͽ����
|
61
61
|
|
62
|
-
���塼���饤�٥�Ȥ��ɤ߽Ф��ˤϡ� @[
|
63
|
-
�����Ǥϡ� @[
|
64
|
-
while event = SDL::
|
65
|
-
@[
|
62
|
+
���塼���饤�٥�Ȥ��ɤ߽Ф��ˤϡ� @[Event.poll] ��Ȥ��ޤ���
|
63
|
+
�����Ǥϡ� @[Event.poll] ��Ȥä�����ޤ���
|
64
|
+
while event = SDL::Event.poll
|
65
|
+
@[Event.poll] �ϥ��٥�ȥ��塼���鼡�Υ��٥�Ȥ�
|
66
66
|
���Ф��ơ����塼���������ޤ������塼�˥��٥�Ȥ��ʤ��Ȥ���
|
67
67
|
nil ���֤�������ʳ��ξ��Ͼ�˵����٥�ȥ��饹�Υ�����
|
68
68
|
���֤��ޤ���
|
@@ -72,11 +72,11 @@ nil
|
|
72
72
|
���ˡ��ɤμ���Υ��٥�Ȥ��Τꤿ���Τ��Ȥ������Ȥȡ������ä�
|
73
73
|
���٥�Ȥμ�����Τ�ʤ���Ф����ޤ���
|
74
74
|
�����Ǥϡ����ץꥱ���������Υޥ����ݥ���ư�����Τꤿ���Ȥ��ޤ���
|
75
|
-
���Ƥ��륤�٥�Ȥ��б����륯�饹��@[
|
75
|
+
���Ƥ��륤�٥�Ȥ��б����륯�饹��@[Event::MouseMotion]
|
76
76
|
�Ǥ��뤳�Ȥ��狼��ޤ���case��when ʸ�� when �ν�˥��饹��ȡ�
|
77
|
-
���Υ��饹�Υ�����case
|
78
|
-
when SDL::
|
79
|
-
�����Ǥ� event �� @[
|
77
|
+
���Υ��饹�Υ�����case��Ϳ�����Ȥ���ʬ�����뤳�Ȥ����Ѥ��ޤ�
|
78
|
+
when SDL::Event::MouseMotion
|
79
|
+
�����Ǥ� event �� @[Event::MouseMotion] �Υ����ʤΤ�
|
80
80
|
���Υ�åɤ�Ȥäƾ�������뤳�Ȥ��Ǥ��ޤ���
|
81
81
|
puts "�ޥ����������뤬��ư���륤�٥�Ȥ�������ޤ�����"
|
82
82
|
puts "��������ΰ��֤�(#{event.x}, #{event.y})�Ǥ���"
|
@@ -88,119 +88,118 @@ nil
|
|
88
88
|
|
89
89
|
���٥�ȥ��塼�˥��٥�Ȥ����뤳�Ȥ�Ǥ��ޤ��Τǡ�
|
90
90
|
���٥�ȥ��塼���������̿������Ѥ��뤳�Ȥ�Ǥ��ޤ���
|
91
|
-
@[
|
91
|
+
@[Event.push]�ǥ��٥�ȥ��塼�˥��٥�Ȥ����뤳�Ȥ��Ǥ��ޤ���
|
92
92
|
�������ϥ��٥�Ȥ���Ф����ꤹ�뤿��˻Ȥ����Ȥ��Ǥ��ޤ���
|
93
93
|
�桼�����٥�Ȥ� Ruby/SDL �Ǥ����ѤǤ��ޤ���
|
94
94
|
|
95
|
-
== SDL::
|
95
|
+
== SDL::Event
|
96
96
|
���٥�Ȥ��갷������Υ��饹�Ǥ����ºݤΥ��饹�Ϥ��Υ��饹�Υ��֥��饹
|
97
97
|
�Ȥ���ɽ����ޤ���
|
98
98
|
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
���������Ǥ��ޤ���
|
99
|
+
== ���Ȥθߴ���
|
100
|
+
���Ĥ�SDL::Event�Ȥ���̾�����ä����饹���ѻߤ���ޤ�����
|
101
|
+
����SDL::Event�Ȥ���̾���Υ��饹�ϰ�����
|
102
|
+
SDL::Event2�Ȥ���̾���Ǥ�����
|
103
|
+
�����ѹ��Τ��ᡢ�� SDL::Event ��ȤäƤ����
|
104
|
+
�ߴ���������ޤ��ޤ���SDL::Event2�Ȥ���̾���ϸߴ���
|
105
|
+
�Τ���Ĥ���Ƥ��ޤ���
|
107
106
|
|
108
|
-
== SDL::
|
107
|
+
== SDL::Event::Active
|
109
108
|
���ץꥱ�������βĻ����˴ؤ��륤�٥�ȤΥ��饹�Ǥ���
|
110
109
|
|
111
110
|
�ޥ�����������Υ�����ɥ��ν����ꡢ
|
112
111
|
�����ܡ��ɥե��������������������
|
113
112
|
�Ǿ���/���������줿�긵����ä��Ȥ���ȯ�����ޤ���
|
114
113
|
|
115
|
-
��Τ����줬�������Τ��� @[
|
114
|
+
��Τ����줬�������Τ��� @[Event::Active#state] �Ǥ狼��ޤ���
|
116
115
|
|
117
116
|
* NOTES
|
118
117
|
|
119
118
|
���Υ��٥�Ȥϡ��ǽ�˥�����ɥ����������줿�Ȥ��ˤ�ȯ�����ޤ���
|
120
119
|
|
121
|
-
METHODS(
|
120
|
+
METHODS(Event::Active)
|
122
121
|
|
123
|
-
== SDL::
|
122
|
+
== SDL::Event::KeyDown
|
124
123
|
�����ܡ��ɤ����Ȥ���ȯ�����륤�٥�ȤΥ��饹�Ǥ���
|
125
124
|
|
126
|
-
METHODS(
|
125
|
+
METHODS(Event::KeyDown)
|
127
126
|
|
128
|
-
== SDL::
|
127
|
+
== SDL::Event::KeyUp
|
129
128
|
�����ܡ��ɤ�Υ�����Ȥ���ȯ�����륤�٥�ȤΥ��饹�Ǥ���
|
130
129
|
|
131
|
-
METHODS(
|
130
|
+
METHODS(Event::KeyUp)
|
132
131
|
|
133
|
-
== SDL::
|
132
|
+
== SDL::Event::MouseMotion
|
134
133
|
�ޥ�����ư�������Ȥ���ȯ�����륤�٥�ȤΥ��饹�Ǥ���
|
135
134
|
|
136
135
|
��ñ�˸����ȡ�
|
137
136
|
���Υ��٥�Ȥ�
|
138
137
|
���ץꥱ���������ɥ�����ǥ桼�������ޥ�����ư�������Ȥ���
|
139
138
|
�ޤ��� @[Mouse.warp] ���ƤФ줿����ȯ�����ޤ���
|
140
|
-
���ߤΥܥ���ξ���(@[
|
141
|
-
���к�ɸ(@[
|
142
|
-
�����к�ɸ(@[
|
139
|
+
���ߤΥܥ���ξ���(@[Event::MouseMotion#state])�ȤȤ�ˡ�
|
140
|
+
���к�ɸ(@[Event::MouseMotion#x] �� @[Event::MouseMotion#y])
|
141
|
+
�����к�ɸ(@[Event::MouseMotion#xrel] �� @[Event::MouseMotion#yrel])
|
143
142
|
��ξ������𤵤�ޤ���
|
144
143
|
|
145
|
-
METHODS(
|
144
|
+
METHODS(Event::MouseMotion)
|
146
145
|
|
147
|
-
== SDL::
|
146
|
+
== SDL::Event::MouseButtonDown
|
148
147
|
�ޥ����ܥ�������Ȥ��Υ��٥�ȤΥ��饹�Ǥ���
|
149
148
|
|
150
|
-
METHODS(
|
149
|
+
METHODS(Event::MouseButtonDown)
|
151
150
|
|
152
|
-
== SDL::
|
151
|
+
== SDL::Event::MouseButtonUp
|
153
152
|
�ޥ����ܥ����Υ�����Ȥ��Υ��٥�ȤΥ��饹�Ǥ���
|
154
153
|
|
155
|
-
METHODS(
|
154
|
+
METHODS(Event::MouseButtonUp)
|
156
155
|
|
157
|
-
== SDL::
|
156
|
+
== SDL::Event::JoyAxis
|
158
157
|
���祤���ƥ��å��μ����٥�ȤΥ��饹�Ǥ���
|
159
158
|
|
160
159
|
�桼�������祤���ƥ��å��μ����ư������Ȥ��Υ��٥�Ȥ�ȯ�����ޤ���
|
161
160
|
|
162
|
-
METHODS(
|
161
|
+
METHODS(Event::JoyAxis)
|
163
162
|
|
164
163
|
* SEEALSO
|
165
164
|
@[Joystick#num_axes]��@[Joystick#axis]
|
166
165
|
|
167
|
-
== SDL::
|
166
|
+
== SDL::Event::JoyBall
|
168
167
|
���祤���ƥ��å��Υȥ�å��ܡ����ư�����٥�ȤΥ��饹�Ǥ���
|
169
168
|
|
170
|
-
METHODS(
|
169
|
+
METHODS(Event::JoyBall)
|
171
170
|
|
172
171
|
* SEEALSO
|
173
172
|
|
174
173
|
@[Joystick#num_balls]��@[Joystick#ball]
|
175
174
|
|
176
|
-
== SDL::
|
175
|
+
== SDL::Event::JoyHat
|
177
176
|
���祤���ƥ��å��Υϥåȥ����å��ΰ����Ѳ����٥�ȤΥ��饹�Ǥ���
|
178
177
|
|
179
|
-
METHODS(
|
178
|
+
METHODS(Event::JoyHat)
|
180
179
|
|
181
180
|
* SEEALSO
|
182
181
|
|
183
182
|
@[Joystick#num_hats]��@[Joystick#hat]
|
184
183
|
|
185
|
-
== SDL::
|
184
|
+
== SDL::Event::JoyButtonDown
|
186
185
|
���祤���ƥ��å��Υܥ�����������줿�Ȥ���ȯ�����륤�٥�ȤΥ��饹�Ǥ���
|
187
186
|
|
188
|
-
METHODS(
|
187
|
+
METHODS(Event::JoyButtonDown)
|
189
188
|
|
190
189
|
* SEEALSO
|
191
190
|
|
192
191
|
@[Joystick#num_buttons]��@[Joystick#button]
|
193
192
|
|
194
|
-
== SDL::
|
193
|
+
== SDL::Event::JoyButtonUp
|
195
194
|
���祤���ƥ��å��Υܥ����Υ�����Ȥ���ȯ�����륤�٥�ȤΥ��饹�Ǥ���
|
196
195
|
|
197
|
-
METHODS(
|
196
|
+
METHODS(Event::JoyButtonUp)
|
198
197
|
|
199
198
|
* SEEALSO
|
200
199
|
|
201
200
|
@[Joystick#num_buttons]��@[Joystick#button]
|
202
201
|
|
203
|
-
== SDL::
|
202
|
+
== SDL::Event::Quit
|
204
203
|
��λ�������٥�ȤΥ��饹�Ǥ���
|
205
204
|
|
206
205
|
��λ���٥�Ȥ�̵�뤹��ȡ�
|
@@ -210,7 +209,7 @@ METHODS(Event2::JoyButtonUp)
|
|
210
209
|
���ץꥱ�������ϸ����ʤ��ʤ�ޤ�����
|
211
210
|
���̹����Ϥ���Ǥ��������٥�Ȥ���𤷤ޤ���
|
212
211
|
|
213
|
-
== SDL::
|
212
|
+
== SDL::Event::SysWM
|
214
213
|
�ץ�åȥե������¸�Υ�����ɥ��ޥ͡����㥤�٥�ȤΥ��饹�Ǥ���
|
215
214
|
|
216
215
|
������ɥ��ޥ͡����㤫������Ǥ��ʤ����٥�Ȥ������ä����Ϥ��ĤǤ�
|
@@ -218,20 +217,20 @@ METHODS(Event2::JoyButtonUp)
|
|
218
217
|
�Ǥ��ޤ�����¸�ߤ��������ͭ�ѤǤʤ����٥�ȤǤ���
|
219
218
|
Ruby �����̵�뤹��ʳ��Τ��ȤϤǤ��ޤ���
|
220
219
|
|
221
|
-
== SDL::
|
220
|
+
== SDL::Event::VideoResize
|
222
221
|
������ɥ��Υꥵ�������٥�ȤΥ��饹�Ǥ���
|
223
222
|
|
224
|
-
SDL::RESIZABLE �� $[flag] �Ȥ��� @[
|
223
|
+
SDL::RESIZABLE �� $[flag] �Ȥ��� @[Screen.open] ��
|
225
224
|
�Ϥ��줿���ϡ��桼�����ϥ��ץꥱ���������ɥ���ꥵ�������뤳�Ȥ�
|
226
225
|
������ޤ���
|
227
226
|
������ɥ����ꥵ�������줿���ϡ����Υ��٥�Ȥ�ȯ������
|
228
|
-
@[
|
227
|
+
@[Event::VideoResize#w] �� @[Event::VideoResize#h] ����
|
229
228
|
������ɥ��ο����������ȹ⤵�������ޤ���
|
230
229
|
|
231
230
|
���Υ��٥�Ȥ�������ȡ�������ɥ���
|
232
|
-
@[
|
231
|
+
@[Screen.open]��Ȥäƿ�������ˡ�˥ꥵ���������Ϥ��Ǥ���
|
233
232
|
|
234
|
-
== SDL::
|
233
|
+
== SDL::Event::VideoExpose
|
235
234
|
������˴ؤ��륤�٥�ȤΥ��饹�Ǥ�
|
236
235
|
|
237
236
|
���Υ��٥�Ȥ�¾�Υ��ץꥱ��������̾�ϥ�����ɥ��ޥ͡�����ˤ�ä�screen
|
@@ -389,10 +388,10 @@ METHODS(Mouse)
|
|
389
388
|
== Methods
|
390
389
|
%%%
|
391
390
|
NAME poll
|
392
|
-
MOD
|
391
|
+
MOD Event
|
393
392
|
TYPE .
|
394
393
|
PURPOSE ����α�ޤäƤ��륤�٥�Ȥ���Ф��ޤ���
|
395
|
-
RVAL
|
394
|
+
RVAL Event/nil
|
396
395
|
|
397
396
|
PROTO
|
398
397
|
poll
|
@@ -403,29 +402,29 @@ DESC
|
|
403
402
|
���塼���餽�Υ��٥�Ȥ������ޤ���
|
404
403
|
|
405
404
|
EXAMPLE
|
406
|
-
while event = SDL::
|
405
|
+
while event = SDL::Event.poll #���塼�˻ĤäƤ��륤�٥�Ȥ��ʤ��ʤ�ޤǥ롼��
|
407
406
|
case event # Ŭ�ڤʥ��٥�ȥ����פ����
|
408
|
-
when SDL::
|
407
|
+
when SDL::Event::KeyDown # �����������٥�Ȥ����
|
409
408
|
puts "��! �������ޤ�����"
|
410
|
-
when SDL::
|
409
|
+
when SDL::Event::MouseMotion
|
411
410
|
.
|
412
411
|
.
|
413
412
|
.
|
414
413
|
else # ̤�����Υ��٥�Ȥ����
|
415
|
-
puts ��ˤϤ褯ʬ����ʤ����٥�ȤǤ�!"
|
414
|
+
puts "��ˤϤ褯ʬ����ʤ����٥�ȤǤ�!"
|
416
415
|
end
|
417
416
|
end
|
418
417
|
|
419
418
|
SEEALSO
|
420
|
-
|
421
|
-
|
419
|
+
Event
|
420
|
+
Event.wait
|
422
421
|
|
423
422
|
%%
|
424
423
|
NAME wait
|
425
|
-
MOD
|
424
|
+
MOD Event
|
426
425
|
TYPE .
|
427
426
|
PURPOSE �������Ѳ�ǽ�ʥ��٥�Ȥ����ޤ�̵�¤��Ե����ޤ���
|
428
|
-
RVAL
|
427
|
+
RVAL Event/nil
|
429
428
|
|
430
429
|
PROTO
|
431
430
|
wait
|
@@ -446,11 +445,11 @@ NOTES
|
|
446
445
|
������Ǥ���
|
447
446
|
|
448
447
|
SEEALSO
|
449
|
-
|
448
|
+
Event.poll
|
450
449
|
|
451
450
|
%%
|
452
451
|
NAME push
|
453
|
-
MOD
|
452
|
+
MOD Event
|
454
453
|
TYPE .
|
455
454
|
PURPOSE ���٥�Ȥ٥�ȥ��塼�˥ץå��夷�ޤ���
|
456
455
|
|
@@ -467,11 +466,11 @@ SDL
|
|
467
466
|
EXCEPTION *
|
468
467
|
|
469
468
|
SEEALSO
|
470
|
-
|
469
|
+
Event.poll
|
471
470
|
|
472
471
|
%%
|
473
472
|
NAME app_state
|
474
|
-
MOD
|
473
|
+
MOD Event
|
475
474
|
TYPE .
|
476
475
|
PURPOSE ���ץꥱ�������ξ��֤����ޤ���
|
477
476
|
RVAL UINT
|
@@ -482,19 +481,19 @@ appState
|
|
482
481
|
|
483
482
|
DESC
|
484
483
|
���ץꥱ�������θ��ߤξ��֤��֤��ޤ�������ͤϰʲ��Υӥå��¤Ǥ���
|
485
|
-
:SDL::
|
484
|
+
:SDL::Event::APPMOUSEFOCUS
|
486
485
|
�ޥ����Υե�������������ޤ���
|
487
|
-
:SDL::
|
486
|
+
:SDL::Event::APPINPUTFOCUS
|
488
487
|
�����ܡ��ɤΥե�������������ޤ���
|
489
|
-
:SDL::
|
488
|
+
:SDL::Event::APPACTIVE
|
490
489
|
���ץꥱ�������ϲĻ���֤Ǥ���
|
491
490
|
|
492
491
|
SEEALSO
|
493
|
-
|
492
|
+
Event::Active
|
494
493
|
|
495
494
|
%%
|
496
495
|
NAME enable_unicode
|
497
|
-
MOD
|
496
|
+
MOD Event
|
498
497
|
TYPE .
|
499
498
|
PURPOSE UNICODE�Ѵ���ͭ���ˤ��ޤ���
|
500
499
|
|
@@ -508,7 +507,7 @@ DESC
|
|
508
507
|
�Ѵ���ͭ���ˤ���ȡ������ܡ��ɥ��٥�ȤΤ��Ӥˤ���äȤ���
|
509
508
|
�����С��إåɤ�ȯ�����뤿�ᡢ�ǥե���ȤǤ��Ѵ���̵���ˤʤäƤ��ޤ���
|
510
509
|
�Ѵ���ͭ���ˤ���ȡ��ʸ�Υ��������٥�ȤǤϡ�
|
511
|
-
@[
|
510
|
+
@[Event::KeyDown#unicode] �����б�����ʸ�������ɤ������ޤ���
|
512
511
|
�б�����ʸ�������ɤ����Ĥ���ʤ��Ȥ���0������ޤ���
|
513
512
|
|
514
513
|
NOTES
|
@@ -516,12 +515,12 @@ NOTES
|
|
516
515
|
�����������٥�Ȥ��Ѵ�����ޤ���
|
517
516
|
|
518
517
|
SEEALSO
|
519
|
-
|
520
|
-
|
518
|
+
Event.disable_unicode
|
519
|
+
Event.enable_unicode?
|
521
520
|
|
522
521
|
%%
|
523
522
|
NAME disable_unicode
|
524
|
-
MOD
|
523
|
+
MOD Event
|
525
524
|
TYPE .
|
526
525
|
PURPOSE UNICODE�Ѵ���̵���ˤ��ޤ���
|
527
526
|
|
@@ -530,12 +529,12 @@ disable_unicode
|
|
530
529
|
disableUNICODE
|
531
530
|
|
532
531
|
DESC
|
533
|
-
UNICODE�Ѵ���̵���ˤ��ޤ����ܤ����� @[
|
532
|
+
UNICODE�Ѵ���̵���ˤ��ޤ����ܤ����� @[Event.enable_unicode]
|
534
533
|
�Ƥ���������
|
535
534
|
|
536
535
|
%%
|
537
536
|
NAME enable_unicode?
|
538
|
-
MOD
|
537
|
+
MOD Event
|
539
538
|
TYPE .
|
540
539
|
PURPOSE UNICODE�Ѵ���ͭ�����ɤ���Ĵ�٤ޤ���
|
541
540
|
RVAL true/false
|
@@ -545,13 +544,13 @@ enable_unicode?
|
|
545
544
|
enableUNICODE?
|
546
545
|
|
547
546
|
DESC
|
548
|
-
UNICODE�Ѵ���ͭ�����ɤ���Ĵ�٤ޤ����ܤ����� @[
|
547
|
+
UNICODE�Ѵ���ͭ�����ɤ���Ĵ�٤ޤ����ܤ����� @[Event.enable_unicode]
|
549
548
|
�Ƥ���������
|
550
549
|
|
551
550
|
%%
|
552
551
|
NAME gain
|
553
552
|
TYPE #
|
554
|
-
MOD
|
553
|
+
MOD Event::Active
|
555
554
|
PURPOSE �Ļ����������ʤ� true ���ä��ʤ� false ���֤��ޤ���
|
556
555
|
RVAL true/false
|
557
556
|
|
@@ -563,38 +562,38 @@ DESC
|
|
563
562
|
���ä����Ȥ��б����륤�٥�Ȥʤ� false ���֤��ޤ���
|
564
563
|
|
565
564
|
SEEALSO
|
566
|
-
|
567
|
-
|
565
|
+
Event::Active
|
566
|
+
Event::Active#state
|
568
567
|
|
569
568
|
%%
|
570
569
|
NAME state
|
571
|
-
MOD
|
570
|
+
MOD Event::Active
|
572
571
|
TYPE #
|
573
572
|
PURPOSE �ɤΤ褦�ʼ���βĻ����ѹ����٥�Ȥ�ȯ�������Τ����֤��ޤ���
|
574
|
-
RVAL SDL::
|
573
|
+
RVAL SDL::Event::APPMOUSEFOCUS/SDL::Event::APPINPUTFOCUS/SDL::Event::APPACTIVE
|
575
574
|
|
576
575
|
PROTO
|
577
576
|
state
|
578
577
|
|
579
578
|
DESC
|
580
579
|
�ޥ����������뤬������ɥ��γ��˽Ф���(gain=false)��������ɥ����
|
581
|
-
���ä���(gain=true)�����Ȥ��ϡ�SDL::
|
580
|
+
���ä���(gain=true)�����Ȥ��ϡ�SDL::Event::APPMOUSEFOCUS ���֤��ޤ���
|
582
581
|
|
583
582
|
���ץꥱ����������ܡ��ɥե���������������(gain=true)
|
584
|
-
���ä���(gain=false)�����Ȥ��ϡ�SDL::
|
583
|
+
���ä���(gain=false)�����Ȥ��ϡ�SDL::Event::APPINPUTFOCUS ��
|
585
584
|
�֤��ޤ���������̾�¾�Υ��ץꥱ����������ƥ��֤�
|
586
585
|
�ʤä��Ȥ���ȯ�����ޤ���
|
587
586
|
|
588
587
|
���ץꥱ������Ǿ���/���������줿��(gain=false)
|
589
|
-
������ä��Ȥ�(gain=true)�ˤ� SDL::
|
588
|
+
������ä��Ȥ�(gain=true)�ˤ� SDL::Event::APPACTIVE ���֤��ޤ���
|
590
589
|
|
591
590
|
SEEALSO
|
592
|
-
|
593
|
-
|
591
|
+
Event::Active
|
592
|
+
Event::Active#gain
|
594
593
|
|
595
594
|
%%
|
596
595
|
NAME press
|
597
|
-
MOD
|
596
|
+
MOD Event::KeyDown
|
598
597
|
TYPE #
|
599
598
|
PURPOSE true���֤��ޤ���
|
600
599
|
RVAL true
|
@@ -606,11 +605,11 @@ DESC
|
|
606
605
|
��� true ���֤��ޤ���
|
607
606
|
|
608
607
|
SEEALSO
|
609
|
-
|
608
|
+
Event::KeyUp#press
|
610
609
|
|
611
610
|
%%
|
612
611
|
NAME sym
|
613
|
-
MOD
|
612
|
+
MOD Event::KeyDown
|
614
613
|
TYPE #
|
615
614
|
PURPOSE ���Υ���������������ܥ���֤��ޤ���
|
616
615
|
RVAL Integer
|
@@ -622,11 +621,11 @@ DESC
|
|
622
621
|
���Υ�����������((<��������ܥ�>))���֤��ޤ���
|
623
622
|
|
624
623
|
SEEALSO
|
625
|
-
|
624
|
+
Event::KeyDown#unicode
|
626
625
|
|
627
626
|
%%
|
628
627
|
NAME mod
|
629
|
-
MOD
|
628
|
+
MOD Event::KeyDown
|
630
629
|
TYPE #
|
631
630
|
PURPOSE �����������Υ�����ǥ��ե������ξ��֤��֤��ޤ���
|
632
631
|
RVAL UINT
|
@@ -643,7 +642,7 @@ Key.mod_state
|
|
643
642
|
|
644
643
|
%%
|
645
644
|
NAME unicode
|
646
|
-
MOD
|
645
|
+
MOD Event::KeyDown
|
647
646
|
TYPE #
|
648
647
|
PURPOSE �Ѵ����줿ʸ�����֤��ޤ���
|
649
648
|
RVAL UINT
|
@@ -652,7 +651,7 @@ PROTO
|
|
652
651
|
unicode
|
653
652
|
|
654
653
|
DESC
|
655
|
-
@[
|
654
|
+
@[Event.enable_unicode] �ˤ�ä� UNICODE �Ѵ���ͭ���ˤ��줿���ˤϡ�
|
656
655
|
�����β������б����� UNICODE ʸ�����֤��ޤ���
|
657
656
|
ʸ���ξ�� 9 �ӥåȤ� 0 �ξ��ϡ� ASCII ʸ�����б����Ƥ��ޤ���
|
658
657
|
|
@@ -660,7 +659,7 @@ DESC
|
|
660
659
|
|
661
660
|
%%
|
662
661
|
NAME press
|
663
|
-
MOD
|
662
|
+
MOD Event::KeyUp
|
664
663
|
TYPE #
|
665
664
|
PURPOSE false���֤��ޤ���
|
666
665
|
RVAL false
|
@@ -672,11 +671,11 @@ DESC
|
|
672
671
|
��� false ���֤��ޤ���
|
673
672
|
|
674
673
|
SEEALSO
|
675
|
-
|
674
|
+
Event::KeyDown#press
|
676
675
|
|
677
676
|
%%
|
678
677
|
NAME sym
|
679
|
-
MOD
|
678
|
+
MOD Event::KeyUp
|
680
679
|
TYPE #
|
681
680
|
PURPOSE ���Υ�����Υ������������ܥ���֤��ޤ���
|
682
681
|
RVAL Integer
|
@@ -689,7 +688,7 @@ DESC
|
|
689
688
|
|
690
689
|
%%
|
691
690
|
NAME mod
|
692
|
-
MOD
|
691
|
+
MOD Event::KeyUp
|
693
692
|
TYPE #
|
694
693
|
PURPOSE ������ǥ��ե������ξ��֤��֤��ޤ���
|
695
694
|
RVAL UINT
|
@@ -706,7 +705,7 @@ Key.mod_state
|
|
706
705
|
|
707
706
|
%%
|
708
707
|
NAME state
|
709
|
-
MOD
|
708
|
+
MOD Event::MouseMotion
|
710
709
|
TYPE #
|
711
710
|
PURPOSE ���ߤΥܥ���ξ��֤��֤��ޤ���
|
712
711
|
RVAL UINT
|
@@ -730,7 +729,7 @@ Mouse.state
|
|
730
729
|
|
731
730
|
%%
|
732
731
|
NAME x
|
733
|
-
MOD
|
732
|
+
MOD Event::MouseMotion
|
734
733
|
TYPE #
|
735
734
|
PURPOSE �ޥ����� X ��ɸ���֤��ޤ���
|
736
735
|
RVAL UINT
|
@@ -746,7 +745,7 @@ Mouse.state
|
|
746
745
|
|
747
746
|
%%
|
748
747
|
NAME y
|
749
|
-
MOD
|
748
|
+
MOD Event::MouseMotion
|
750
749
|
TYPE #
|
751
750
|
PURPOSE �ޥ����� Y ��ɸ���֤��ޤ���
|
752
751
|
RVAL UINT
|
@@ -762,7 +761,7 @@ Mouse.state
|
|
762
761
|
|
763
762
|
%%
|
764
763
|
NAME xrel
|
765
|
-
MOD
|
764
|
+
MOD Event::MouseMotion
|
766
765
|
TYPE #
|
767
766
|
PURPOSE �ޥ����� X ����������Ū��ư�����֤��ޤ���
|
768
767
|
RVAL Integer
|
@@ -775,7 +774,7 @@ DESC
|
|
775
774
|
|
776
775
|
%%
|
777
776
|
NAME yrel
|
778
|
-
MOD
|
777
|
+
MOD Event::MouseMotion
|
779
778
|
TYPE #
|
780
779
|
PURPOSE �ޥ����� Y ����������Ū��ư�����֤��ޤ���
|
781
780
|
RVAL Integer
|
@@ -788,7 +787,7 @@ DESC
|
|
788
787
|
|
789
788
|
%%
|
790
789
|
NAME button
|
791
|
-
MOD
|
790
|
+
MOD Event::MouseButtonDown
|
792
791
|
TYPE #
|
793
792
|
PURPOSE �����줿�ܥ�����ֹ���֤��ޤ���
|
794
793
|
|
@@ -804,7 +803,7 @@ DESC
|
|
804
803
|
|
805
804
|
%%
|
806
805
|
NAME press
|
807
|
-
MOD
|
806
|
+
MOD Event::MouseButtonDown
|
808
807
|
TYPE #
|
809
808
|
PURPOSE �ܥ����������٥�Ȥ��ɤ������֤��ޤ���
|
810
809
|
RVAL true
|
@@ -817,11 +816,11 @@ DESC
|
|
817
816
|
��� true ���֤��ޤ���
|
818
817
|
|
819
818
|
SEEALSO
|
820
|
-
|
819
|
+
Event::MouseButtonUp#press
|
821
820
|
|
822
821
|
%%
|
823
822
|
NAME x
|
824
|
-
MOD
|
823
|
+
MOD Event::MouseButtonDown
|
825
824
|
TYPE #
|
826
825
|
PURPOSE �ޥ����� X ��ɸ���֤��ޤ���
|
827
826
|
RVAL UINT
|
@@ -837,7 +836,7 @@ Mouse.state
|
|
837
836
|
|
838
837
|
%%
|
839
838
|
NAME y
|
840
|
-
MOD
|
839
|
+
MOD Event::MouseButtonDown
|
841
840
|
TYPE #
|
842
841
|
PURPOSE �ޥ����� Y ��ɸ���֤��ޤ���
|
843
842
|
RVAL UINT
|
@@ -853,7 +852,7 @@ Mouse.state
|
|
853
852
|
|
854
853
|
%%
|
855
854
|
NAME button
|
856
|
-
MOD
|
855
|
+
MOD Event::MouseButtonUp
|
857
856
|
TYPE #
|
858
857
|
PURPOSE Υ���줿�ܥ�����ֹ���֤��ޤ���
|
859
858
|
|
@@ -869,7 +868,7 @@ DESC
|
|
869
868
|
|
870
869
|
%%
|
871
870
|
NAME press
|
872
|
-
MOD
|
871
|
+
MOD Event::MouseButtonUp
|
873
872
|
TYPE #
|
874
873
|
PURPOSE �ܥ����������٥�Ȥ��ɤ������֤��ޤ���
|
875
874
|
RVAL false
|
@@ -882,11 +881,11 @@ DESC
|
|
882
881
|
��� false ���֤��ޤ���
|
883
882
|
|
884
883
|
SEEALSO
|
885
|
-
|
884
|
+
Event::MouseButtonDown#press
|
886
885
|
|
887
886
|
%%
|
888
887
|
NAME x
|
889
|
-
MOD
|
888
|
+
MOD Event::MouseButtonUp
|
890
889
|
TYPE #
|
891
890
|
PURPOSE �ޥ����� X ��ɸ���֤��ޤ���
|
892
891
|
RVAL UINT
|
@@ -902,7 +901,7 @@ Mouse.state
|
|
902
901
|
|
903
902
|
%%
|
904
903
|
NAME y
|
905
|
-
MOD
|
904
|
+
MOD Event::MouseButtonUp
|
906
905
|
TYPE #
|
907
906
|
PURPOSE �ޥ����� Y ��ɸ���֤��ޤ���
|
908
907
|
RVAL UINT
|
@@ -918,7 +917,7 @@ Mouse.state
|
|
918
917
|
|
919
918
|
%%
|
920
919
|
NAME which
|
921
|
-
MOD
|
920
|
+
MOD Event::JoyAxis
|
922
921
|
TYPE #
|
923
922
|
PURPOSE ���祤���ƥ��å��ǥХ������ֹ���֤��ޤ���
|
924
923
|
RVAL Integer
|
@@ -935,7 +934,7 @@ Joystick#num_axes
|
|
935
934
|
|
936
935
|
%%
|
937
936
|
NAME axis
|
938
|
-
MOD
|
937
|
+
MOD Event::JoyAxis
|
939
938
|
TYPE #
|
940
939
|
PURPOSE ���祤���ƥ��å��μ����ֹ���֤��ޤ���
|
941
940
|
RVAL Integer
|
@@ -951,7 +950,7 @@ Joystick
|
|
951
950
|
|
952
951
|
%%
|
953
952
|
NAME value
|
954
|
-
MOD
|
953
|
+
MOD Event::JoyAxis
|
955
954
|
TYPE #
|
956
955
|
PURPOSE �����ͤ��֤��ޤ���
|
957
956
|
RVAL -32767 - 32767
|
@@ -968,7 +967,7 @@ Joystick#axis
|
|
968
967
|
|
969
968
|
%%
|
970
969
|
NAME which
|
971
|
-
MOD
|
970
|
+
MOD Event::JoyBall
|
972
971
|
TYPE #
|
973
972
|
PURPOSE ���祤���ƥ��å��ǥХ������ֹ���֤��ޤ���
|
974
973
|
RVAL Integer
|
@@ -984,7 +983,7 @@ Joystick
|
|
984
983
|
|
985
984
|
%%
|
986
985
|
NAME ball
|
987
|
-
MOD
|
986
|
+
MOD Event::JoyBall
|
988
987
|
TYPE #
|
989
988
|
PURPOSE ���祤���ƥ��å��Υȥ�å��ܡ�����ֹ���֤��ޤ���
|
990
989
|
RVAL Integer
|
@@ -1002,7 +1001,7 @@ Joystick#num_balls
|
|
1002
1001
|
|
1003
1002
|
%%
|
1004
1003
|
NAME xrel
|
1005
|
-
MOD
|
1004
|
+
MOD Event::JoyBall
|
1006
1005
|
TYPE #
|
1007
1006
|
PURPOSE X����������Ū��ư�����֤��ޤ���
|
1008
1007
|
RVAL Integer
|
@@ -1019,7 +1018,7 @@ Joystick#ball
|
|
1019
1018
|
|
1020
1019
|
%%
|
1021
1020
|
NAME yrel
|
1022
|
-
MOD
|
1021
|
+
MOD Event::JoyBall
|
1023
1022
|
TYPE #
|
1024
1023
|
PURPOSE Y����������Ū��ư�����֤��ޤ���
|
1025
1024
|
RVAL Integer
|
@@ -1036,7 +1035,7 @@ Joystick#ball
|
|
1036
1035
|
|
1037
1036
|
%%
|
1038
1037
|
NAME which
|
1039
|
-
MOD
|
1038
|
+
MOD Event::JoyHat
|
1040
1039
|
TYPE #
|
1041
1040
|
PURPOSE ���祤���ƥ��å��ǥХ������ֹ���֤��ޤ���
|
1042
1041
|
RVAL Integer
|
@@ -1052,7 +1051,7 @@ Joystick
|
|
1052
1051
|
|
1053
1052
|
%%
|
1054
1053
|
NAME hat
|
1055
|
-
MOD
|
1054
|
+
MOD Event::JoyHat
|
1056
1055
|
TYPE #
|
1057
1056
|
PURPOSE ���祤���ƥ��å��Υϥåȥ����å����ֹ���֤��ޤ���
|
1058
1057
|
RVAL Integer
|
@@ -1069,7 +1068,7 @@ Joystick#num_hats
|
|
1069
1068
|
|
1070
1069
|
%%
|
1071
1070
|
NAME value
|
1072
|
-
MOD
|
1071
|
+
MOD Event::JoyHat
|
1073
1072
|
TYPE #
|
1074
1073
|
PURPOSE �ϥåȥ����å��ΰ��֤��֤��ޤ���
|
1075
1074
|
RVAL UINT
|
@@ -1093,7 +1092,7 @@ DESC
|
|
1093
1092
|
|
1094
1093
|
%%
|
1095
1094
|
NAME which
|
1096
|
-
MOD
|
1095
|
+
MOD Event::JoyButtonDown
|
1097
1096
|
TYPE #
|
1098
1097
|
PURPOSE ���祤���ƥ��å��ǥХ������ֹ���֤��ޤ���
|
1099
1098
|
RVAL Integer
|
@@ -1109,7 +1108,7 @@ Joystick
|
|
1109
1108
|
|
1110
1109
|
%%
|
1111
1110
|
NAME button
|
1112
|
-
MOD
|
1111
|
+
MOD Event::JoyButtonDown
|
1113
1112
|
TYPE #
|
1114
1113
|
PURPOSE ���祤���ƥ��å��Υܥ�����ֹ���֤��ޤ���
|
1115
1114
|
RVAL Integer
|
@@ -1126,7 +1125,7 @@ Joystick#num_buttons
|
|
1126
1125
|
|
1127
1126
|
%%
|
1128
1127
|
NAME press
|
1129
|
-
MOD
|
1128
|
+
MOD Event::JoyButtonDown
|
1130
1129
|
TYPE #
|
1131
1130
|
PURPOSE �ܥ����������٥�Ȥ��ɤ������֤��ޤ���
|
1132
1131
|
RVAL true
|
@@ -1139,12 +1138,12 @@ DESC
|
|
1139
1138
|
��� true ���֤��ޤ���
|
1140
1139
|
|
1141
1140
|
SEEALSO
|
1142
|
-
|
1141
|
+
Event::JoyButtonUp#press
|
1143
1142
|
Joystick#button
|
1144
1143
|
|
1145
1144
|
%%
|
1146
1145
|
NAME which
|
1147
|
-
MOD
|
1146
|
+
MOD Event::JoyButtonUp
|
1148
1147
|
TYPE
|
1149
1148
|
PURPOSE ���祤���ƥ��å��ǥХ������ֹ���֤��ޤ���
|
1150
1149
|
RVAL Integer
|
@@ -1160,7 +1159,7 @@ Joystick
|
|
1160
1159
|
|
1161
1160
|
%%
|
1162
1161
|
NAME button
|
1163
|
-
MOD
|
1162
|
+
MOD Event::JoyButtonUp
|
1164
1163
|
TYPE #
|
1165
1164
|
PURPOSE ���祤���ƥ��å��Υܥ�����ֹ���֤��ޤ���
|
1166
1165
|
RVAL Integer
|
@@ -1177,7 +1176,7 @@ Joystick#num_buttons
|
|
1177
1176
|
|
1178
1177
|
%%
|
1179
1178
|
NAME press
|
1180
|
-
MOD
|
1179
|
+
MOD Event::JoyButtonUp
|
1181
1180
|
TYPE #
|
1182
1181
|
PURPOSE �ܥ����������٥�Ȥ��ɤ������֤��ޤ���
|
1183
1182
|
RVAL false
|
@@ -1190,12 +1189,12 @@ DESC
|
|
1190
1189
|
��� false ���֤��ޤ���
|
1191
1190
|
|
1192
1191
|
SEEALSO
|
1193
|
-
|
1192
|
+
Event::JoyButtonDown#press
|
1194
1193
|
Joystick#button
|
1195
1194
|
|
1196
1195
|
%%
|
1197
1196
|
NAME w
|
1198
|
-
MOD
|
1197
|
+
MOD Event::VideoResize
|
1199
1198
|
TYPE #
|
1200
1199
|
PURPOSE ������ɥ��ο����������֤��ޤ���
|
1201
1200
|
RVAL Integer
|
@@ -1209,7 +1208,7 @@ DESC
|
|
1209
1208
|
|
1210
1209
|
%%
|
1211
1210
|
NAME h
|
1212
|
-
MOD
|
1211
|
+
MOD Event::VideoResize
|
1213
1212
|
TYPE #
|
1214
1213
|
PURPOSE ������ɥ��ο������⤵���֤��ޤ���
|
1215
1214
|
RVAL Integer
|
@@ -1234,13 +1233,13 @@ DESC
|
|
1234
1233
|
�����ܡ��ɤξ��֤Υ��ʥåץ���åȤ�Ȥ�ޤ���
|
1235
1234
|
@[Key.press?]��Ȥ����δؿ��Ǽ�ä����֤ξ�������ޤ���
|
1236
1235
|
|
1237
|
-
���ξ��֤� @[
|
1236
|
+
���ξ��֤� @[Event.poll] �� @[Event.wait] ��ƤФʤ��ȹ�������ޤ���
|
1238
1237
|
|
1239
1238
|
SEEALSO
|
1240
1239
|
Key.press?
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1240
|
+
Event::KeyDown
|
1241
|
+
Event::KeyUp
|
1242
|
+
Event.poll
|
1244
1243
|
|
1245
1244
|
%%
|
1246
1245
|
NAME press?
|
@@ -1259,8 +1258,8 @@ $[key]
|
|
1259
1258
|
|
1260
1259
|
SEEALSO
|
1261
1260
|
Key.scan
|
1262
|
-
|
1263
|
-
|
1261
|
+
Event::KeyDown
|
1262
|
+
Event::KeyUp
|
1264
1263
|
|
1265
1264
|
%%
|
1266
1265
|
NAME mod_state
|
@@ -1389,9 +1388,9 @@ if lbutton
|
|
1389
1388
|
end
|
1390
1389
|
|
1391
1390
|
SEEALSO
|
1392
|
-
|
1393
|
-
|
1394
|
-
|
1391
|
+
Event::MouseMotion
|
1392
|
+
Event::MouseButtonDown
|
1393
|
+
Event::MouseButtonUp
|
1395
1394
|
|
1396
1395
|
%%
|
1397
1396
|
NAME warp
|
@@ -1406,7 +1405,7 @@ DESC
|
|
1406
1405
|
�ޥ�����������ΰ��֤åȤ��ޤ���(�ޥ����⡼����٥�Ȥ�ȯ�������ޤ�)
|
1407
1406
|
|
1408
1407
|
SEEALSO
|
1409
|
-
|
1408
|
+
Event::MouseMotion
|
1410
1409
|
|
1411
1410
|
%%
|
1412
1411
|
NAME show
|