rubysdl 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +505 -0
- data/MANIFEST +81 -0
- data/NEWS.en +144 -0
- data/NEWS.ja +151 -0
- data/README.en +117 -0
- data/README.ja +166 -0
- data/SDL_kanji.c +403 -0
- data/SDL_kanji.h +48 -0
- data/depend +18 -0
- data/doc/Makefile +18 -0
- data/doc/cdrom.rsd +431 -0
- data/doc/collision.rsd +162 -0
- data/doc/event.rsd +1487 -0
- data/doc/font.rsd +839 -0
- data/doc/general.rsd +49 -0
- data/doc/init.rsd +175 -0
- data/doc/joystick.rsd +387 -0
- data/doc/mixer.rsd +837 -0
- data/doc/mpeg.rsd +595 -0
- data/doc/rsd.rb +125 -0
- data/doc/sdlskk.rsd +496 -0
- data/doc/time.rsd +45 -0
- data/doc/video.rsd +2499 -0
- data/doc/wm.rsd +113 -0
- data/extconf.rb +92 -0
- data/lib/rubysdl_aliases.rb +431 -0
- data/lib/sdl.rb +271 -0
- data/rubysdl.h +109 -0
- data/rubysdl_cdrom.c +176 -0
- data/rubysdl_const_list.txt +280 -0
- data/rubysdl_doc.en.rd +2180 -0
- data/rubysdl_doc_old.rd +2402 -0
- data/rubysdl_event.c +346 -0
- data/rubysdl_event2.c +417 -0
- data/rubysdl_event_key.c +356 -0
- data/rubysdl_image.c +53 -0
- data/rubysdl_joystick.c +156 -0
- data/rubysdl_kanji.c +135 -0
- data/rubysdl_main.c +202 -0
- data/rubysdl_mixer.c +422 -0
- data/rubysdl_mouse.c +96 -0
- data/rubysdl_opengl.c +63 -0
- data/rubysdl_pixel.c +133 -0
- data/rubysdl_ref.html +5550 -0
- data/rubysdl_ref.rd +6163 -0
- data/rubysdl_rwops.c +90 -0
- data/rubysdl_sdlskk.c +312 -0
- data/rubysdl_sge_video.c +622 -0
- data/rubysdl_smpeg.c +341 -0
- data/rubysdl_time.c +36 -0
- data/rubysdl_ttf.c +324 -0
- data/rubysdl_video.c +749 -0
- data/rubysdl_wm.c +71 -0
- data/sample/aadraw.rb +24 -0
- data/sample/alpha.rb +27 -0
- data/sample/alphadraw.rb +25 -0
- data/sample/bfont.rb +24 -0
- data/sample/cdrom.rb +17 -0
- data/sample/collision.rb +97 -0
- data/sample/cursor.bmp +0 -0
- data/sample/cursor.rb +22 -0
- data/sample/ellipses.rb +35 -0
- data/sample/event2.rb +32 -0
- data/sample/font.bmp +0 -0
- data/sample/font.rb +25 -0
- data/sample/fpstimer.rb +175 -0
- data/sample/icon.bmp +0 -0
- data/sample/joy2.rb +81 -0
- data/sample/kanji.rb +36 -0
- data/sample/movesp.rb +93 -0
- data/sample/playmod.rb +14 -0
- data/sample/plaympeg.rb +48 -0
- data/sample/playwave.rb +16 -0
- data/sample/randrect.rb +40 -0
- data/sample/sample.ttf +0 -0
- data/sample/sdlskk.rb +70 -0
- data/sample/sgetest.rb +31 -0
- data/sample/stetris.rb +275 -0
- data/sample/testgl.rb +166 -0
- data/sample/testsprite.rb +68 -0
- data/sample/transformblit.rb +41 -0
- metadata +121 -0
data/doc/collision.rsd
ADDED
@@ -0,0 +1,162 @@
|
|
1
|
+
= ����Ƚ��
|
2
|
+
* ((<����Ƚ�ꥷ���ƥ�γ���>))
|
3
|
+
* ((<SDL::CollisionMap>))
|
4
|
+
|
5
|
+
* ((<����Ƚ���Ϣ��å�>))
|
6
|
+
TOC
|
7
|
+
|
8
|
+
== ����Ƚ�ꥷ���ƥ�γ���
|
9
|
+
Ruby/SDL �ˤ� ((<SGE|URL:http://www.etek.chalmers.se/~e8cal1/sge/index.html>))
|
10
|
+
ͳ��ξ���Ƚ�ꥷ���ƥब����ޤ���
|
11
|
+
����Ū�ʻ��Ȥߤϡ�Ƚ��Τ�����ʬ��̵����ʬ��2�ͤ�Ĺ������������������
|
12
|
+
�����2�Ļ��äƤ��ơ��ŤʤäƤ�����ʬ��1�ԥ����뤺�ĸ��Ƥ������Ȥ�
|
13
|
+
����2�Ĥ����ͤ��Ƥ��뤫���Ĥޤ�ŤʤäƤ��뤫�ɤ�����Ƚ�ꤷ�ޤ���
|
14
|
+
|
15
|
+
sample/collision.rb �⻲�ͤˤ��Ƥ���������
|
16
|
+
|
17
|
+
== SDL::CollisionMap
|
18
|
+
����Ƚ��Τ����2�Ͳ�����ɽ�魯���饹�Ǥ���
|
19
|
+
@[Surface#make_collision_map] �ˤ�äƤΤߥ��������ޤ���
|
20
|
+
|
21
|
+
METHODS(CollisionMap)
|
22
|
+
|
23
|
+
== ����Ƚ���Ϣ��å�
|
24
|
+
%%%
|
25
|
+
NAME make_collision_map
|
26
|
+
MOD Surface
|
27
|
+
TYPE #
|
28
|
+
DEP SGE
|
29
|
+
PURPOSE ����Ƚ��Τ����CollisionMap���������롣
|
30
|
+
RVAL SDL::CollisionMap
|
31
|
+
|
32
|
+
PROTO
|
33
|
+
make_collision_map
|
34
|
+
makeCollisionMap
|
35
|
+
|
36
|
+
DESC
|
37
|
+
@[Surface] �Υ������� @[CollisionMap] ���������ޤ���
|
38
|
+
$[self] �Υԥ�����Τ������顼������Ʃ���ԥ�����ˤʤäƤ���
|
39
|
+
�꤬���ͤ��ʤ��ꡢ�����Ǥʤ��ԥ����뤬���ͤ���ԥ�����ˤʤ�ޤ���
|
40
|
+
|
41
|
+
EXCEPTION *
|
42
|
+
|
43
|
+
SEEALSO
|
44
|
+
Surface#set_color_key
|
45
|
+
CollisionMap#collision_check
|
46
|
+
CollisionMap#clear
|
47
|
+
CollisionMap#set
|
48
|
+
|
49
|
+
%%
|
50
|
+
NAME collision_check
|
51
|
+
MOD CollisionMap
|
52
|
+
TYPE #
|
53
|
+
DEP SGE
|
54
|
+
PURPOSE ����Ƚ��ޤ���
|
55
|
+
RVAL true/false
|
56
|
+
|
57
|
+
PROTO
|
58
|
+
collision_check(x1, y1, cmap, x2, y2)
|
59
|
+
|
60
|
+
DESC
|
61
|
+
$[self] �κ��夬 ��ɸ ($[x1], $[y1])���⤦�ҤȤĤ�
|
62
|
+
@[CollisionMap] �Υ����� $[cmap] �κ��夬 ($[x2], $[y2])��
|
63
|
+
������ˡ�����2�Ĥ��ŤʤäƤ��뤫�ɤ�����Ƚ�ꤷ���ŤʤäƤ���
|
64
|
+
�ʤ� true ���ʤ��ʤ� false ���֤��ޤ���
|
65
|
+
|
66
|
+
���Υ�åɤ������� @[CollisionMap#bounding_box_check] ��
|
67
|
+
�Ƥ�Ǥ��ޤ���
|
68
|
+
|
69
|
+
SEEALSO
|
70
|
+
CollisionMap#bounding_box_check
|
71
|
+
|
72
|
+
%%
|
73
|
+
NAME bounding_box_check
|
74
|
+
MOD CollisionMap
|
75
|
+
TYPE #
|
76
|
+
DEP SGE
|
77
|
+
PURPOSE 2�Ĥ�Ĺ�������ŤʤäƤ��뤫�ɤ�����Ƚ�ꤷ�ޤ���
|
78
|
+
RVAL true/false
|
79
|
+
|
80
|
+
PROTO
|
81
|
+
bounding_box_check(x1, y1, cmap, x2, y2)
|
82
|
+
boundingBoxCheck(x1, y1, cmap, x2, y2)
|
83
|
+
|
84
|
+
DESC
|
85
|
+
@[CollisionMap] �Υ�����Ĺ�����ȸ��ʤ���
|
86
|
+
$[self] �κ��夬 ($[x1], $[y1])��$[cmap] �κ�������� ($[x2], $[y2])��
|
87
|
+
����Ȥ���2�Ĥ�Ĺ�������ŤʤäƤ��뤫�ɤ�����Ƚ�ꤷ�ޤ���
|
88
|
+
|
89
|
+
RET
|
90
|
+
Ĺ�������ŤʤäƤ���� true ���ʤ���� false ���֤��ޤ���
|
91
|
+
|
92
|
+
SEEALSO
|
93
|
+
CollisionMap#collision_check
|
94
|
+
CollisionMap#w
|
95
|
+
CollisionMap#h
|
96
|
+
|
97
|
+
%%
|
98
|
+
NAME clear
|
99
|
+
MOD CollisionMap
|
100
|
+
TYPE #
|
101
|
+
DEP SGE
|
102
|
+
PURPOSE ���ꤷ���ϰϤ���ͤʤ��ξ��֤ˤ��ޤ���
|
103
|
+
|
104
|
+
PROTO
|
105
|
+
clear(x, y, w, h)
|
106
|
+
|
107
|
+
DESC
|
108
|
+
�����ǻ��ꤷ��Ĺ��������ͤʤ��ξ��֤ˤ��ޤ���
|
109
|
+
|
110
|
+
SEEALSO
|
111
|
+
CollisionMap#set
|
112
|
+
|
113
|
+
%%
|
114
|
+
NAME set
|
115
|
+
MOD CollisionMap
|
116
|
+
TYPE #
|
117
|
+
DEP SGE
|
118
|
+
PURPOSE ���ꤷ���ϰϤ���ͤ���ξ��֤ˤ��ޤ���
|
119
|
+
|
120
|
+
PROTO
|
121
|
+
set(x, y, w, h)
|
122
|
+
|
123
|
+
DESC
|
124
|
+
�����ǻ��ꤷ��Ĺ��������ͤ���ξ��֤ˤ��ޤ���
|
125
|
+
|
126
|
+
SEEALSO
|
127
|
+
CollisionMap#set
|
128
|
+
|
129
|
+
%%
|
130
|
+
NAME w
|
131
|
+
MOD CollisionMap
|
132
|
+
TYPE #
|
133
|
+
DEP SGE
|
134
|
+
PURPOSE ����Ƚ���Ѳ����������֤��ޤ���
|
135
|
+
RVAL Integer
|
136
|
+
|
137
|
+
PROTO
|
138
|
+
w
|
139
|
+
|
140
|
+
DESC
|
141
|
+
����Ƚ���Ѳ����������֤��ޤ���
|
142
|
+
|
143
|
+
SEEALSO
|
144
|
+
CollisionMap#h
|
145
|
+
|
146
|
+
%%
|
147
|
+
NAME h
|
148
|
+
MOD CollisionMap
|
149
|
+
TYPE #
|
150
|
+
DEP SGE
|
151
|
+
PURPOSE ����Ƚ���Ѳ����ι⤵���֤��ޤ���
|
152
|
+
RVAL Integer
|
153
|
+
|
154
|
+
PROTO
|
155
|
+
h
|
156
|
+
|
157
|
+
DESC
|
158
|
+
����Ƚ���Ѳ����ι⤵���֤��ޤ���
|
159
|
+
|
160
|
+
SEEALSO
|
161
|
+
CollisionMap#w
|
162
|
+
|
data/doc/event.rsd
ADDED
@@ -0,0 +1,1487 @@
|
|
1
|
+
= Event
|
2
|
+
* ((<Event system����>))
|
3
|
+
* ((<SDL::Event2>))
|
4
|
+
* ((<SDL::Event2::Active>))
|
5
|
+
* ((<SDL::Event2::KeyDown>))
|
6
|
+
* ((<SDL::Event2::KeyUp>))
|
7
|
+
* ((<SDL::Event2::MouseMotion>))
|
8
|
+
* ((<SDL::Event2::MouseButtonDown>))
|
9
|
+
* ((<SDL::Event2::MouseButtonUp>))
|
10
|
+
* ((<SDL::Event2::JoyAxis>))
|
11
|
+
* ((<SDL::Event2::JoyBall>))
|
12
|
+
* ((<SDL::Event2::JoyHat>))
|
13
|
+
* ((<SDL::Event2::JoyButtonDown>))
|
14
|
+
* ((<SDL::Event2::JoyButtonUp>))
|
15
|
+
* ((<SDL::Event2::Quit>))
|
16
|
+
* ((<SDL::Event2::SysWM>))
|
17
|
+
* ((<SDL::Event2::VideoResize>))
|
18
|
+
* ((<SDL::Event2::VideoExpose>))
|
19
|
+
* ((<SDL::Key>))
|
20
|
+
* ((<SDL::Mouse>))
|
21
|
+
* Event��Ϣ��å�
|
22
|
+
TOC
|
23
|
+
|
24
|
+
== Event system����
|
25
|
+
���٥�Ƚ����ˤ�äƤ��ʤ��Υ��ץꥱ�������ϥ桼���������
|
26
|
+
���Ϥ������뤳�Ȥ��Ǥ��ޤ���
|
27
|
+
���٥�Ƚ����ϼ��Υ�åɤ�Ƥ֤��Ȥǡ�(�ӥǥ��Ȱ���)���������ޤ���
|
28
|
+
SDL.init(SDL::INIT_VIDEO)
|
29
|
+
����Ū�ˤϡ�SDL �Ͻ��������ޤ��Ե����Ƥ������ƤΥ��٥�Ȥ٥�ȥ��塼��
|
30
|
+
��Ǽ���ޤ���
|
31
|
+
|
32
|
+
@[Event2.poll] �� @[Event2.wait] �Τ褦�ʥ�åɤ�Ȥ����Ȥǡ�
|
33
|
+
�Ե����Ƥ������ϥ��٥�Ȥ��ꡢ�������뤳�Ȥ��Ǥ��ޤ���
|
34
|
+
|
35
|
+
Ruby/SDL�ˤ����륤�٥�Ƚ����θ��ϡ�@[Event2]�Υ��֥��饹���Ǥ���
|
36
|
+
���٥�ȥ��塼���Ȥ�@[Event2](�Υ��֥��饹)�Υ��������
|
37
|
+
�ߤʤ����Ȥ��Ǥ��ޤ��������Υ��֥������Ȥ�@[Event2.poll]��Ȥä�
|
38
|
+
���塼�����ɤߤ����졢
|
39
|
+
�����Ƥ����˳�Ǽ���줿����ν����ץꥱ��������ޤ���
|
40
|
+
|
41
|
+
@[Event2]�Υ��֥��饹�ϰʲ����̤�Ǥ���
|
42
|
+
* @[Event2::Active]
|
43
|
+
* @[Event2::KeyDown]
|
44
|
+
* @[Event2::KeyUp]
|
45
|
+
* @[Event2::MouseMotion]
|
46
|
+
* @[Event2::MouseButtonDown]
|
47
|
+
* @[Event2::MouseButtonUp]
|
48
|
+
* @[Event2::JoyAxis]
|
49
|
+
* @[Event2::JoyBall]
|
50
|
+
* @[Event2::JoyHat]
|
51
|
+
* @[Event2::JoyButtonDown]
|
52
|
+
* @[Event2::JoyButtonUp]
|
53
|
+
* @[Event2::Quit]
|
54
|
+
* @[Event2::SysWM]
|
55
|
+
* @[Event2::VideoResize]
|
56
|
+
* @[Event2::VideoExpose]
|
57
|
+
|
58
|
+
���٥�ȥ��饹�ˤϰʲ�����Ĥ����Ӥ�����ޤ���
|
59
|
+
* ���塼���饤�٥�Ȥ��ɤ߽Ф�
|
60
|
+
* ���塼�˥��٥�Ȥ���Ͽ����
|
61
|
+
|
62
|
+
���塼���饤�٥�Ȥ��ɤ߽Ф��ˤϡ� @[Event2.poll] ��Ȥ��ޤ���
|
63
|
+
�����Ǥϡ� @[Event2.poll] ��Ȥä�����ޤ���
|
64
|
+
while event = SDL::Event2.poll
|
65
|
+
@[Event2.poll] �ϥ��٥�ȥ��塼���鼡�Υ��٥�Ȥ�
|
66
|
+
���Ф��ơ����塼���������ޤ������塼�˥��٥�Ȥ��ʤ��Ȥ���
|
67
|
+
nil ���֤�������ʳ��ξ��Ͼ�˵����٥�ȥ��饹�Υ�����
|
68
|
+
���֤��ޤ���
|
69
|
+
|
70
|
+
���ˡ����٥�Ȥμ����Ƚ�̤��뤿��� case��when ʸ��Ȥ��ޤ���
|
71
|
+
case event
|
72
|
+
���ˡ��ɤμ���Υ��٥�Ȥ��Τꤿ���Τ��Ȥ������Ȥȡ������ä�
|
73
|
+
���٥�Ȥμ�����Τ�ʤ���Ф����ޤ���
|
74
|
+
�����Ǥϡ����ץꥱ���������Υޥ����ݥ���ư�����Τꤿ���Ȥ��ޤ���
|
75
|
+
���Ƥ��륤�٥�Ȥ��б����륯�饹��@[Event2::MouseMotion]
|
76
|
+
�Ǥ��뤳�Ȥ��狼��ޤ���case��when ʸ�� when �ν�˥��饹��ȡ�
|
77
|
+
���Υ��饹�Υ�����case��Ϳ�����Ȥ���ʬ�����뤳�Ȥ������Ѥ��ޤ�
|
78
|
+
when SDL::Event2::MouseMotion
|
79
|
+
�����Ǥ� event �� @[Event2::MouseMotion] �Υ����ʤΤ�
|
80
|
+
���Υ�åɤ�Ȥäƾ�������뤳�Ȥ��Ǥ��ޤ���
|
81
|
+
puts "�ޥ����������뤬��ư���륤�٥�Ȥ�������ޤ�����"
|
82
|
+
puts "��������ΰ��֤�(#{event.x}, #{event.y})�Ǥ���"
|
83
|
+
else
|
84
|
+
puts "�ϥ�ɥ뤷�Ƥ��ʤ����٥�ȤǤ�!"
|
85
|
+
end
|
86
|
+
end
|
87
|
+
puts "���٥�ȥ��塼�϶��Ǥ���"
|
88
|
+
|
89
|
+
���٥�ȥ��塼�˥��٥�Ȥ����뤳�Ȥ�Ǥ��ޤ��Τǡ�
|
90
|
+
���٥�ȥ��塼���������̿������Ѥ��뤳�Ȥ�Ǥ��ޤ���
|
91
|
+
@[Event2.push]�ǥ��٥�ȥ��塼�˥��٥�Ȥ����뤳�Ȥ��Ǥ��ޤ���
|
92
|
+
�������ϥ��٥�Ȥ���Ф����ꤹ�뤿��˻Ȥ����Ȥ��Ǥ��ޤ���
|
93
|
+
�桼�����٥�Ȥ� Ruby/SDL �Ǥ����ѤǤ��ޤ���
|
94
|
+
|
95
|
+
== SDL::Event2
|
96
|
+
���٥�Ȥ��갷������Υ��饹�Ǥ����ºݤΥ��饹�Ϥ��Υ��饹�Υ��֥��饹
|
97
|
+
�Ȥ���ɽ����ޤ���
|
98
|
+
|
99
|
+
Event2�Ȥ���̾���ϸߴ����Τ���Τ�ΤǤ������줬���ˤ���ʤ����ϡ�
|
100
|
+
�饤�֥���ɤ߹��ߤ�ľ���
|
101
|
+
module SDL
|
102
|
+
remove_const :Event2
|
103
|
+
Event = Event2
|
104
|
+
end
|
105
|
+
�ȽƤ�������������� SDL::Event �Ȥ���̾���� SDL::Event2 ��
|
106
|
+
���������Ǥ��ޤ���
|
107
|
+
|
108
|
+
== SDL::Event2::Active
|
109
|
+
���ץꥱ�������βĻ����˴ؤ��륤�٥�ȤΥ��饹�Ǥ���
|
110
|
+
|
111
|
+
�ޥ�����������Υ�����ɥ��ν����ꡢ
|
112
|
+
�����ܡ��ɥե��������������������
|
113
|
+
�Ǿ���/���������줿�긵����ä��Ȥ���ȯ�����ޤ���
|
114
|
+
|
115
|
+
��Τ����줬�������Τ��� @[Event2::Active#state] �Ǥ狼��ޤ���
|
116
|
+
|
117
|
+
* NOTES
|
118
|
+
|
119
|
+
���Υ��٥�Ȥϡ��ǽ�˥�����ɥ����������줿�Ȥ��ˤ�ȯ�����ޤ���
|
120
|
+
|
121
|
+
METHODS(Event2::Active)
|
122
|
+
|
123
|
+
== SDL::Event2::KeyDown
|
124
|
+
�����ܡ��ɤ����Ȥ���ȯ�����륤�٥�ȤΥ��饹�Ǥ���
|
125
|
+
|
126
|
+
METHODS(Event2::KeyDown)
|
127
|
+
|
128
|
+
== SDL::Event2::KeyUp
|
129
|
+
�����ܡ��ɤ�Υ�����Ȥ���ȯ�����륤�٥�ȤΥ��饹�Ǥ���
|
130
|
+
|
131
|
+
METHODS(Event2::KeyUp)
|
132
|
+
|
133
|
+
== SDL::Event2::MouseMotion
|
134
|
+
�ޥ�����ư�������Ȥ���ȯ�����륤�٥�ȤΥ��饹�Ǥ���
|
135
|
+
|
136
|
+
��ñ�˸����ȡ�
|
137
|
+
���Υ��٥�Ȥ�
|
138
|
+
���ץꥱ���������ɥ�����ǥ桼�������ޥ�����ư�������Ȥ���
|
139
|
+
�ޤ��� @[Mouse.warp] ���ƤФ줿����ȯ�����ޤ���
|
140
|
+
���ߤΥܥ���ξ���(@[Event2::MouseMotion#state])�ȤȤ�ˡ�
|
141
|
+
���к�ɸ(@[Event2::MouseMotion#x] �� @[Event2::MouseMotion#y])
|
142
|
+
�����к�ɸ(@[Event2::MouseMotion#xrel] �� @[Event2::MouseMotion#yrel])
|
143
|
+
��ξ������𤵤�ޤ���
|
144
|
+
|
145
|
+
METHODS(Event2::MouseMotion)
|
146
|
+
|
147
|
+
== SDL::Event2::MouseButtonDown
|
148
|
+
�ޥ����ܥ�������Ȥ��Υ��٥�ȤΥ��饹�Ǥ���
|
149
|
+
|
150
|
+
METHODS(Event2::MouseButtonDown)
|
151
|
+
|
152
|
+
== SDL::Event2::MouseButtonUp
|
153
|
+
�ޥ����ܥ����Υ�����Ȥ��Υ��٥�ȤΥ��饹�Ǥ���
|
154
|
+
|
155
|
+
METHODS(Event2::MouseButtonUp)
|
156
|
+
|
157
|
+
== SDL::Event2::JoyAxis
|
158
|
+
���祤���ƥ��å��μ����٥�ȤΥ��饹�Ǥ���
|
159
|
+
|
160
|
+
�桼�������祤���ƥ��å��μ����ư������Ȥ��Υ��٥�Ȥ�ȯ�����ޤ���
|
161
|
+
|
162
|
+
METHODS(Event2::JoyAxis)
|
163
|
+
|
164
|
+
* SEEALSO
|
165
|
+
@[Joystick#num_axes]��@[Joystick#axis]
|
166
|
+
|
167
|
+
== SDL::Event2::JoyBall
|
168
|
+
���祤���ƥ��å��Υȥ�å��ܡ����ư�����٥�ȤΥ��饹�Ǥ���
|
169
|
+
|
170
|
+
METHODS(Event2::JoyBall)
|
171
|
+
|
172
|
+
* SEEALSO
|
173
|
+
|
174
|
+
@[Joystick#num_balls]��@[Joystick#ball]
|
175
|
+
|
176
|
+
== SDL::Event2::JoyHat
|
177
|
+
���祤���ƥ��å��Υϥåȥ����å��ΰ����Ѳ����٥�ȤΥ��饹�Ǥ���
|
178
|
+
|
179
|
+
METHODS(Event2::JoyHat)
|
180
|
+
|
181
|
+
* SEEALSO
|
182
|
+
|
183
|
+
@[Joystick#num_hats]��@[Joystick#hat]
|
184
|
+
|
185
|
+
== SDL::Event2::JoyButtonDown
|
186
|
+
���祤���ƥ��å��Υܥ�����������줿�Ȥ���ȯ�����륤�٥�ȤΥ��饹�Ǥ���
|
187
|
+
|
188
|
+
METHODS(Event2::JoyButtonDown)
|
189
|
+
|
190
|
+
* SEEALSO
|
191
|
+
|
192
|
+
@[Joystick#num_buttons]��@[Joystick#button]
|
193
|
+
|
194
|
+
== SDL::Event2::JoyButtonUp
|
195
|
+
���祤���ƥ��å��Υܥ����Υ�����Ȥ���ȯ�����륤�٥�ȤΥ��饹�Ǥ���
|
196
|
+
|
197
|
+
METHODS(Event2::JoyButtonUp)
|
198
|
+
|
199
|
+
* SEEALSO
|
200
|
+
|
201
|
+
@[Joystick#num_buttons]��@[Joystick#button]
|
202
|
+
|
203
|
+
== SDL::Event2::Quit
|
204
|
+
��λ�������٥�ȤΥ��饹�Ǥ���
|
205
|
+
|
206
|
+
��λ���٥�Ȥ�̵�뤹��ȡ�
|
207
|
+
�桼�����ϥ�����ɥ����Ĥ��뤳�Ȥ��Բ�ǽ�ˤʤ�ޤ���
|
208
|
+
�����ǡ���λ���٥�Ȥ���������ʤ�С�
|
209
|
+
���ץꥱ���������ɥ����Ĥ�����
|
210
|
+
���ץꥱ�������ϸ����ʤ��ʤ�ޤ�����
|
211
|
+
���̹����Ϥ���Ǥ��������٥�Ȥ���𤷤ޤ���
|
212
|
+
|
213
|
+
== SDL::Event2::SysWM
|
214
|
+
�ץ�åȥե������¸�Υ�����ɥ��ޥ͡����㥤�٥�ȤΥ��饹�Ǥ���
|
215
|
+
|
216
|
+
������ɥ��ޥ͡����㤫������Ǥ��ʤ����٥�Ȥ������ä����Ϥ��ĤǤ�
|
217
|
+
��������ޤ���Ruby/SDL ����Ϥ����ʤ륤�٥�ȤǤ���Τ����Τ뤳�Ȥ�
|
218
|
+
�Ǥ��ޤ�����¸�ߤ��������ͭ�ѤǤʤ����٥�ȤǤ���
|
219
|
+
Ruby �����̵�뤹��ʳ��Τ��ȤϤǤ��ޤ���
|
220
|
+
|
221
|
+
== SDL::Event2::VideoResize
|
222
|
+
������ɥ��Υꥵ�������٥�ȤΥ��饹�Ǥ���
|
223
|
+
|
224
|
+
SDL::RESIZABLE �� $[flag] �Ȥ��� @[set_video_mode] ��
|
225
|
+
�Ϥ��줿���ϡ��桼�����ϥ��ץꥱ���������ɥ���ꥵ�������뤳�Ȥ�
|
226
|
+
������ޤ���
|
227
|
+
������ɥ����ꥵ�������줿���ϡ����Υ��٥�Ȥ�ȯ������
|
228
|
+
@[Event2::VideoResize#w] �� @[Event2::VideoResize#h] ����
|
229
|
+
������ɥ��ο����������ȹ⤵�������ޤ���
|
230
|
+
|
231
|
+
���Υ��٥�Ȥ�������ȡ�������ɥ���
|
232
|
+
@[set_video_mode]��Ȥäƿ�������ˡ�˥ꥵ���������Ϥ��Ǥ���
|
233
|
+
|
234
|
+
== SDL::Event2::VideoExpose
|
235
|
+
������˴ؤ��륤�٥�ȤΥ��饹�Ǥ�
|
236
|
+
|
237
|
+
���Υ��٥�Ȥ�¾�Υ��ץꥱ��������̾�ϥ�����ɥ��ޥ͡�����ˤ�ä�screen
|
238
|
+
���ѹ����줿�Ȥ���ȯ�������������ɬ���������Τ��ޤ���
|
239
|
+
|
240
|
+
== SDL::Key
|
241
|
+
�����ܡ������ϴ�Ϣ���갷���⥸�塼��Ǥ���
|
242
|
+
|
243
|
+
�����ܡ��ɴ�Ϣ������ȥ⥸�塼��ؿ����������Ƥ��ޤ���
|
244
|
+
|
245
|
+
METHODS(Key)
|
246
|
+
|
247
|
+
=== ��������ܥ�
|
248
|
+
@[Key] �ˤϥ����ܡ��ɤΤ��줾��Υ������б�����ʲ���������������Ƥ��ޤ���
|
249
|
+
* SDL::Key::BACKSPACE '\b' backspace
|
250
|
+
* SDL::Key::TAB '\t' tab
|
251
|
+
* SDL::Key::CLEAR clear ���ꥢ
|
252
|
+
* SDL::Key::RETURN '\r' return
|
253
|
+
* SDL::Key::PAUSE pause
|
254
|
+
* SDL::Key::ESCAPE '^[' escape
|
255
|
+
* SDL::Key::SPACE ' ' space ���ڡ���
|
256
|
+
* SDL::Key::EXCLAIM '!' exclaim ��ò��
|
257
|
+
* SDL::Key::QUOTEDBL '"' quotedbl �������
|
258
|
+
* SDL::Key::HASH '#' hash �ϥå���(���㡼��)
|
259
|
+
* SDL::Key::DOLLAR '$' dollar �ɥ�
|
260
|
+
* SDL::Key::AMPERSAND '&' ampersand ����ѥ����
|
261
|
+
* SDL::Key::QUOTE ''' quote ������
|
262
|
+
* SDL::Key::LEFTPAREN '(' left parenthesis ���ݳ��
|
263
|
+
* SDL::Key::RIGHTPAREN ')' right parenthesis ���ݳ��
|
264
|
+
* SDL::Key::ASTERISK '*' asterisk �������ꥹ��
|
265
|
+
* SDL::Key::PLUS '+' plus sign �ץ饹
|
266
|
+
* SDL::Key::COMMA ',' comma �����
|
267
|
+
* SDL::Key::MINUS '-' minus sign �ޥ��ʥ�
|
268
|
+
* SDL::Key::PERIOD '.' period �ԥꥪ��
|
269
|
+
* SDL::Key::SLASH '/' forward slash ������
|
270
|
+
* SDL::Key::K0 '0' 0
|
271
|
+
* SDL::Key::K1 '1' 1
|
272
|
+
* SDL::Key::K2 '2' 2
|
273
|
+
* SDL::Key::K3 '3' 3
|
274
|
+
* SDL::Key::K4 '4' 4
|
275
|
+
* SDL::Key::K5 '5' 5
|
276
|
+
* SDL::Key::K6 '6' 6
|
277
|
+
* SDL::Key::K7 '7' 7
|
278
|
+
* SDL::Key::K8 '8' 8
|
279
|
+
* SDL::Key::K9 '9' 9
|
280
|
+
* SDL::Key::COLON ':' colon ������
|
281
|
+
* SDL::Key::SEMICOLON ';' semicolon ���ߥ�����
|
282
|
+
* SDL::Key::LESS '<' less-than sign ���ʤ�
|
283
|
+
* SDL::Key::EQUALS '=' equals sign ��������
|
284
|
+
* SDL::Key::GREATER '>' greater-than sign ��ʤ�
|
285
|
+
* SDL::Key::QUESTION '?' question mark ������
|
286
|
+
* SDL::Key::AT '@' at ���åȥޡ���
|
287
|
+
* SDL::Key::LEFTBRACKET '[' left bracket ���������
|
288
|
+
* SDL::Key::BACKSLASH '\' backslash �Хå�����å���
|
289
|
+
* SDL::Key::RIGHTBRACKET ']' right bracket ���������
|
290
|
+
* SDL::Key::CARET '^' caret �����å�
|
291
|
+
* SDL::Key::UNDERSCORE '_' underscore �������������
|
292
|
+
* SDL::Key::BACKQUOTE '`' grave �հ�����
|
293
|
+
* SDL::Key::A 'a' a
|
294
|
+
* SDL::Key::B 'b' b
|
295
|
+
* SDL::Key::C 'c' c
|
296
|
+
* SDL::Key::D 'd' d
|
297
|
+
* SDL::Key::E 'e' e
|
298
|
+
* SDL::Key::F 'f' f
|
299
|
+
* SDL::Key::G 'g' g
|
300
|
+
* SDL::Key::H 'h' h
|
301
|
+
* SDL::Key::I 'i' i
|
302
|
+
* SDL::Key::J 'j' j
|
303
|
+
* SDL::Key::K 'k' k
|
304
|
+
* SDL::Key::L 'l' l
|
305
|
+
* SDL::Key::M 'm' m
|
306
|
+
* SDL::Key::N 'n' n
|
307
|
+
* SDL::Key::O 'o' o
|
308
|
+
* SDL::Key::P 'p' p
|
309
|
+
* SDL::Key::Q 'q' q
|
310
|
+
* SDL::Key::R 'r' r
|
311
|
+
* SDL::Key::S 's' s
|
312
|
+
* SDL::Key::T 't' t
|
313
|
+
* SDL::Key::U 'u' u
|
314
|
+
* SDL::Key::V 'v' v
|
315
|
+
* SDL::Key::W 'w' w
|
316
|
+
* SDL::Key::X 'x' x
|
317
|
+
* SDL::Key::Y 'y' y
|
318
|
+
* SDL::Key::Z 'z' z
|
319
|
+
* SDL::Key::DELETE '^?' delete
|
320
|
+
* SDL::Key::KP0 keypad 0 �����Хå�(�ƥ�)��0
|
321
|
+
* SDL::Key::KP1 keypad 1 �����Хåɤ�1
|
322
|
+
* SDL::Key::KP2 keypad 2 �����Хåɤ�2
|
323
|
+
* SDL::Key::KP3 keypad 3 �����Хåɤ�3
|
324
|
+
* SDL::Key::KP4 keypad 4 �����Хåɤ�4
|
325
|
+
* SDL::Key::KP5 keypad 5 �����Хåɤ�5
|
326
|
+
* SDL::Key::KP6 keypad 6 �����Хåɤ�6
|
327
|
+
* SDL::Key::KP7 keypad 7 �����Хåɤ�7
|
328
|
+
* SDL::Key::KP8 keypad 8 �����Хåɤ�8
|
329
|
+
* SDL::Key::KP9 keypad 9 �����Хåɤ�9
|
330
|
+
* SDL::Key::KP_PERIOD '.' keypad period �����ХåɤΥԥꥪ��
|
331
|
+
* SDL::Key::KP_DIVIDE '/' keypad divide �����ѥåɤν�������
|
332
|
+
* SDL::Key::KP_MULTIPLY '*' keypad multiply �����Хåɤξ軻����
|
333
|
+
* SDL::Key::KP_MINUS '-' keypad minus �����ХåɤΥޥ��ʥ�
|
334
|
+
* SDL::Key::KP_PLUS '+' keypad plus �����ХåɤΥץ饹
|
335
|
+
* SDL::Key::KP_ENTER '\r' keypad enter �����ѥåɤ�enter
|
336
|
+
* SDL::Key::KP_EQUALS '=' keypad equals �����ѥåɤΥ�������
|
337
|
+
* SDL::Key::UP up arrow �����
|
338
|
+
* SDL::Key::DOWN down arrow �����
|
339
|
+
* SDL::Key::RIGHT right arrow �����
|
340
|
+
* SDL::Key::LEFT left arrow �����
|
341
|
+
* SDL::Key::INSERT insert
|
342
|
+
* SDL::Key::HOME home
|
343
|
+
* SDL::Key::END end
|
344
|
+
* SDL::Key::PAGEUP page up
|
345
|
+
* SDL::Key::PAGEDOWN page down
|
346
|
+
* SDL::Key::F1 F1
|
347
|
+
* SDL::Key::F2 F2
|
348
|
+
* SDL::Key::F3 F3
|
349
|
+
* SDL::Key::F4 F4
|
350
|
+
* SDL::Key::F5 F5
|
351
|
+
* SDL::Key::F6 F6
|
352
|
+
* SDL::Key::F7 F7
|
353
|
+
* SDL::Key::F8 F8
|
354
|
+
* SDL::Key::F9 F9
|
355
|
+
* SDL::Key::F10 F10
|
356
|
+
* SDL::Key::F11 F11
|
357
|
+
* SDL::Key::F12 F12
|
358
|
+
* SDL::Key::F13 F13
|
359
|
+
* SDL::Key::F14 F14
|
360
|
+
* SDL::Key::F15 F15
|
361
|
+
* SDL::Key::NUMLOCK numlock
|
362
|
+
* SDL::Key::CAPSLOCK capslock
|
363
|
+
* SDL::Key::SCROLLOCK scrollock
|
364
|
+
* SDL::Key::RSHIFT right shift ��shift
|
365
|
+
* SDL::Key::LSHIFT left shift ��shift
|
366
|
+
* SDL::Key::RCTRL right ctrl ��ctrl
|
367
|
+
* SDL::Key::LCTRL left ctrl ��ctrl
|
368
|
+
* SDL::Key::RALT right alt ��alt
|
369
|
+
* SDL::Key::LALT left alt ��alt
|
370
|
+
* SDL::Key::RMETA right meta ��meta
|
371
|
+
* SDL::Key::LMETA left meta ��meta
|
372
|
+
* SDL::Key::LSUPER left windows key ��windows����
|
373
|
+
* SDL::Key::RSUPER right windows key ��windows����
|
374
|
+
* SDL::Key::MODE mode shift �⡼�ɥ��ե�
|
375
|
+
* SDL::Key::HELP help
|
376
|
+
* SDL::Key::PRINT print-screen
|
377
|
+
* SDL::Key::SYSREQ SysRq
|
378
|
+
* SDL::Key::BREAK break
|
379
|
+
* SDL::Key::MENU menu
|
380
|
+
* SDL::Key::POWER power
|
381
|
+
* SDL::Key::EURO euro �桼��
|
382
|
+
|
383
|
+
== SDL::Mouse
|
384
|
+
�ޥ������ϴ�Ϣ���갷���⥸�塼��Ǥ���
|
385
|
+
|
386
|
+
�ޥ�����Ϣ������ȥ⥸�塼��ؿ����������Ƥ��ޤ���
|
387
|
+
|
388
|
+
METHODS(Mouse)
|
389
|
+
== Methods
|
390
|
+
%%%
|
391
|
+
NAME poll
|
392
|
+
MOD Event2
|
393
|
+
TYPE .
|
394
|
+
PURPOSE ����α�ޤäƤ��륤�٥�Ȥ���Ф��ޤ���
|
395
|
+
RVAL Event2/nil
|
396
|
+
|
397
|
+
PROTO
|
398
|
+
poll
|
399
|
+
|
400
|
+
DESC
|
401
|
+
����α�ޤäƤ��륤�٥�Ȥ���Ф������٥�Ȥ�����Ȥ��Ϥ��Υ��٥�Ȥ�
|
402
|
+
̵���Ȥ��� nil ���֤��ޤ������٥�Ȥ����Ф��줿�Ȥ���
|
403
|
+
���塼���餽�Υ��٥�Ȥ������ޤ���
|
404
|
+
|
405
|
+
EXAMPLE
|
406
|
+
while event = SDL::Event2.poll #���塼�˻ĤäƤ��륤�٥�Ȥ��ʤ��ʤ�ޤǥ롼��
|
407
|
+
case event # Ŭ�ڤʥ��٥�ȥ����פ����
|
408
|
+
when SDL::Event2::KeyDown # �����������٥�Ȥ����
|
409
|
+
puts "��! �������ޤ�����"
|
410
|
+
when SDL::Event2::MouseMotion
|
411
|
+
.
|
412
|
+
.
|
413
|
+
.
|
414
|
+
else # ̤�����Υ��٥�Ȥ����
|
415
|
+
puts ��ˤϤ褯ʬ����ʤ����٥�ȤǤ�!"
|
416
|
+
end
|
417
|
+
end
|
418
|
+
|
419
|
+
SEEALSO
|
420
|
+
Event2
|
421
|
+
Event2.wait
|
422
|
+
|
423
|
+
%%
|
424
|
+
NAME wait
|
425
|
+
MOD Event2
|
426
|
+
TYPE .
|
427
|
+
PURPOSE �������Ѳ�ǽ�ʥ��٥�Ȥ����ޤ�̵�¤��Ե����ޤ���
|
428
|
+
RVAL Event2/nil
|
429
|
+
|
430
|
+
PROTO
|
431
|
+
wait
|
432
|
+
|
433
|
+
DESC
|
434
|
+
�������Ѳ�ǽ�ʥ��٥�Ȥ����ޤ�̵�¤��Ե�����
|
435
|
+
���٥�Ȥ��褿�餽�Υ��٥�Ȥ��֤��ޤ���
|
436
|
+
|
437
|
+
�֤������٥�Ȥϥ��塼����������ޤ���
|
438
|
+
|
439
|
+
EXCEPTION
|
440
|
+
���٥�Ȥ��ԤäƤ���֤˥��顼�����ä������㳰 @[Error] ��
|
441
|
+
ȯ�������ޤ���
|
442
|
+
|
443
|
+
NOTES
|
444
|
+
���Υ�åɤ�Ƥӥ��٥�Ȥ��ԤäƤ���֤�Ruby�Υ���åɤ�
|
445
|
+
�ڤ��ؤ��ޤ���Ruby�Υ���åɤϥ桼����٥륹��å�
|
446
|
+
������Ǥ���
|
447
|
+
|
448
|
+
SEEALSO
|
449
|
+
Event2.poll
|
450
|
+
|
451
|
+
%%
|
452
|
+
NAME push
|
453
|
+
MOD Event2
|
454
|
+
TYPE .
|
455
|
+
PURPOSE ���٥�Ȥ٥�ȥ��塼�˥ץå��夷�ޤ���
|
456
|
+
|
457
|
+
PROTO
|
458
|
+
push(event)
|
459
|
+
|
460
|
+
DESC
|
461
|
+
$[event] �ǻ��ꤷ�����٥�Ȥ٥�ȥ��塼�˥ץå��夷�ޤ���
|
462
|
+
|
463
|
+
NOTES
|
464
|
+
�ǥХ������ϥ��٥�Ȥ塼�˥ץå��夷�Ƥ⡢
|
465
|
+
SDL ��ΥǥХ����ξ��֤��Ѥ��ޤ���
|
466
|
+
|
467
|
+
EXCEPTION *
|
468
|
+
|
469
|
+
SEEALSO
|
470
|
+
Event2.poll
|
471
|
+
|
472
|
+
%%
|
473
|
+
NAME app_state
|
474
|
+
MOD Event2
|
475
|
+
TYPE .
|
476
|
+
PURPOSE ���ץꥱ�������ξ��֤����ޤ���
|
477
|
+
RVAL UINT
|
478
|
+
|
479
|
+
PROTO
|
480
|
+
app_state
|
481
|
+
appState
|
482
|
+
|
483
|
+
DESC
|
484
|
+
���ץꥱ�������θ��ߤξ��֤��֤��ޤ�������ͤϰʲ��Υӥå��¤Ǥ���
|
485
|
+
:SDL::Event2::APPMOUSEFOCUS
|
486
|
+
�ޥ����Υե�������������ޤ���
|
487
|
+
:SDL::Event2::APPINPUTFOCUS
|
488
|
+
�����ܡ��ɤΥե�������������ޤ���
|
489
|
+
:SDL::Event2::APPACTIVE
|
490
|
+
���ץꥱ�������ϲĻ���֤Ǥ���
|
491
|
+
|
492
|
+
SEEALSO
|
493
|
+
Event2::Active
|
494
|
+
|
495
|
+
%%
|
496
|
+
NAME enable_unicode
|
497
|
+
MOD Event2
|
498
|
+
TYPE .
|
499
|
+
PURPOSE UNICODE�Ѵ���ͭ���ˤ��ޤ���
|
500
|
+
|
501
|
+
PROTO
|
502
|
+
enable_unicode
|
503
|
+
enableUNICODE
|
504
|
+
|
505
|
+
DESC
|
506
|
+
�������٥�Ȥ��б�����ʸ�������ɤ����뤿��ˡ�
|
507
|
+
�ޤ����δؿ���ƤӽФ���Unicode�Ѵ���ͭ���ˤ��ʤ���Ф����ޤ���
|
508
|
+
�Ѵ���ͭ���ˤ���ȡ������ܡ��ɥ��٥�ȤΤ��Ӥˤ���äȤ���
|
509
|
+
�����С��إåɤ�ȯ�����뤿�ᡢ�ǥե���ȤǤ��Ѵ���̵���ˤʤäƤ��ޤ���
|
510
|
+
�Ѵ���ͭ���ˤ���ȡ��ʸ�Υ��������٥�ȤǤϡ�
|
511
|
+
@[Event2::KeyDown#unicode] �����б�����ʸ�������ɤ������ޤ���
|
512
|
+
�б�����ʸ�������ɤ����Ĥ���ʤ��Ȥ���0������ޤ���
|
513
|
+
|
514
|
+
NOTES
|
515
|
+
�Ѵ���ͭ���ʤΤϥ��������٥�ȤΤߤǤ���
|
516
|
+
�����������٥�Ȥ��Ѵ�����ޤ���
|
517
|
+
|
518
|
+
SEEALSO
|
519
|
+
Event2.disable_unicode
|
520
|
+
Event2.enable_unicode?
|
521
|
+
|
522
|
+
%%
|
523
|
+
NAME disable_unicode
|
524
|
+
MOD Event2
|
525
|
+
TYPE .
|
526
|
+
PURPOSE UNICODE�Ѵ���̵���ˤ��ޤ���
|
527
|
+
|
528
|
+
PROTO
|
529
|
+
disable_unicode
|
530
|
+
disableUNICODE
|
531
|
+
|
532
|
+
DESC
|
533
|
+
UNICODE�Ѵ���̵���ˤ��ޤ����ܤ����� @[Event2.enable_unicode]
|
534
|
+
�Ƥ���������
|
535
|
+
|
536
|
+
%%
|
537
|
+
NAME enable_unicode?
|
538
|
+
MOD Event2
|
539
|
+
TYPE .
|
540
|
+
PURPOSE UNICODE�Ѵ���ͭ�����ɤ���Ĵ�٤ޤ���
|
541
|
+
RVAL true/false
|
542
|
+
|
543
|
+
PROTO
|
544
|
+
enable_unicode?
|
545
|
+
enableUNICODE?
|
546
|
+
|
547
|
+
DESC
|
548
|
+
UNICODE�Ѵ���ͭ�����ɤ���Ĵ�٤ޤ����ܤ����� @[Event2.enable_unicode]
|
549
|
+
�Ƥ���������
|
550
|
+
|
551
|
+
%%
|
552
|
+
NAME gain
|
553
|
+
TYPE #
|
554
|
+
MOD Event2::Active
|
555
|
+
PURPOSE �Ļ����������ʤ� true ���ä��ʤ� false ���֤��ޤ���
|
556
|
+
RVAL true/false
|
557
|
+
|
558
|
+
PROTO
|
559
|
+
gain
|
560
|
+
|
561
|
+
DESC
|
562
|
+
�Ļ������������Ȥ��б����륤�٥�Ȥʤ� true ��
|
563
|
+
���ä����Ȥ��б����륤�٥�Ȥʤ� false ���֤��ޤ���
|
564
|
+
|
565
|
+
SEEALSO
|
566
|
+
Event2::Active
|
567
|
+
Event2::Active#state
|
568
|
+
|
569
|
+
%%
|
570
|
+
NAME state
|
571
|
+
MOD Event2::Active
|
572
|
+
TYPE #
|
573
|
+
PURPOSE �ɤΤ褦�ʼ���βĻ����ѹ����٥�Ȥ�ȯ�������Τ����֤��ޤ���
|
574
|
+
RVAL SDL::Event2::APPMOUSEFOCUS/SDL::Event2::APPINPUTFOCUS/SDL::Event2::APPACTIVE
|
575
|
+
|
576
|
+
PROTO
|
577
|
+
state
|
578
|
+
|
579
|
+
DESC
|
580
|
+
�ޥ����������뤬������ɥ��γ��˽Ф���(gain=false)��������ɥ����
|
581
|
+
���ä���(gain=true)�����Ȥ��ϡ�SDL::Event2::APPMOUSEFOCUS ���֤��ޤ���
|
582
|
+
|
583
|
+
���ץꥱ����������ܡ��ɥե���������������(gain=true)
|
584
|
+
���ä���(gain=false)�����Ȥ��ϡ�SDL::Event2::APPINPUTFOCUS ��
|
585
|
+
�֤��ޤ���������̾�¾�Υ��ץꥱ����������ƥ��֤�
|
586
|
+
�ʤä��Ȥ���ȯ�����ޤ���
|
587
|
+
|
588
|
+
���ץꥱ������Ǿ���/���������줿��(gain=false)
|
589
|
+
������ä��Ȥ�(gain=true)�ˤ� SDL::Event2::APPACTIVE ���֤��ޤ���
|
590
|
+
|
591
|
+
SEEALSO
|
592
|
+
Event2::Active
|
593
|
+
Event2::Active#gain
|
594
|
+
|
595
|
+
%%
|
596
|
+
NAME press
|
597
|
+
MOD Event2::KeyDown
|
598
|
+
TYPE #
|
599
|
+
PURPOSE true���֤��ޤ���
|
600
|
+
RVAL true
|
601
|
+
|
602
|
+
PROTO
|
603
|
+
press
|
604
|
+
|
605
|
+
DESC
|
606
|
+
��� true ���֤��ޤ���
|
607
|
+
|
608
|
+
SEEALSO
|
609
|
+
Event2::KeyUp#press
|
610
|
+
|
611
|
+
%%
|
612
|
+
NAME sym
|
613
|
+
MOD Event2::KeyDown
|
614
|
+
TYPE #
|
615
|
+
PURPOSE ���Υ���������������ܥ���֤��ޤ���
|
616
|
+
RVAL Integer
|
617
|
+
|
618
|
+
PROTO
|
619
|
+
sym
|
620
|
+
|
621
|
+
DESC
|
622
|
+
���Υ�����������((<��������ܥ�>))���֤��ޤ���
|
623
|
+
|
624
|
+
SEEALSO
|
625
|
+
Event2::KeyDown#unicode
|
626
|
+
|
627
|
+
%%
|
628
|
+
NAME mod
|
629
|
+
MOD Event2::KeyDown
|
630
|
+
TYPE #
|
631
|
+
PURPOSE �����������Υ�����ǥ��ե������ξ��֤��֤��ޤ���
|
632
|
+
RVAL UINT
|
633
|
+
|
634
|
+
PROTO
|
635
|
+
mod
|
636
|
+
|
637
|
+
DESC
|
638
|
+
�����������Υ�����ǥ��ե������ξ��֤��֤��ޤ���
|
639
|
+
�֤��ͤ� @[Key.mod_state] ���������Τ�Ʊ���Ǥ���
|
640
|
+
|
641
|
+
SEEALSO
|
642
|
+
Key.mod_state
|
643
|
+
|
644
|
+
%%
|
645
|
+
NAME unicode
|
646
|
+
MOD Event2::KeyDown
|
647
|
+
TYPE #
|
648
|
+
PURPOSE �Ѵ����줿ʸ�����֤��ޤ���
|
649
|
+
RVAL UINT
|
650
|
+
|
651
|
+
PROTO
|
652
|
+
unicode
|
653
|
+
|
654
|
+
DESC
|
655
|
+
@[Event2.enable_unicode] �ˤ�ä� UNICODE �Ѵ���ͭ���ˤ��줿���ˤϡ�
|
656
|
+
�����β������б����� UNICODE ʸ�����֤��ޤ���
|
657
|
+
ʸ���ξ�� 9 �ӥåȤ� 0 �ξ��ϡ� ASCII ʸ�����б����Ƥ��ޤ���
|
658
|
+
|
659
|
+
�Ѵ���ͭ���Ǥʤ����ˤ�0 ���֤��ޤ���
|
660
|
+
|
661
|
+
%%
|
662
|
+
NAME press
|
663
|
+
MOD Event2::KeyUp
|
664
|
+
TYPE #
|
665
|
+
PURPOSE false���֤��ޤ���
|
666
|
+
RVAL false
|
667
|
+
|
668
|
+
PROTO
|
669
|
+
press
|
670
|
+
|
671
|
+
DESC
|
672
|
+
��� false ���֤��ޤ���
|
673
|
+
|
674
|
+
SEEALSO
|
675
|
+
Event2::KeyDown#press
|
676
|
+
|
677
|
+
%%
|
678
|
+
NAME sym
|
679
|
+
MOD Event2::KeyUp
|
680
|
+
TYPE #
|
681
|
+
PURPOSE ���Υ�����Υ������������ܥ���֤��ޤ���
|
682
|
+
RVAL Integer
|
683
|
+
|
684
|
+
PROTO
|
685
|
+
sym
|
686
|
+
|
687
|
+
DESC
|
688
|
+
���Υ�����Υ��������((<��������ܥ�>))���֤��ޤ���
|
689
|
+
|
690
|
+
%%
|
691
|
+
NAME mod
|
692
|
+
MOD Event2::KeyUp
|
693
|
+
TYPE #
|
694
|
+
PURPOSE ������ǥ��ե������ξ��֤��֤��ޤ���
|
695
|
+
RVAL UINT
|
696
|
+
|
697
|
+
PROTO
|
698
|
+
mod
|
699
|
+
|
700
|
+
DESC
|
701
|
+
������ǥ��ե������ξ��֤��֤��ޤ���
|
702
|
+
�֤��ͤ� @[Key.mod_state] ���������Τ�Ʊ���Ǥ���
|
703
|
+
|
704
|
+
SEEALSO
|
705
|
+
Key.mod_state
|
706
|
+
|
707
|
+
%%
|
708
|
+
NAME state
|
709
|
+
MOD Event2::MouseMotion
|
710
|
+
TYPE #
|
711
|
+
PURPOSE ���ߤΥܥ���ξ��֤��֤��ޤ���
|
712
|
+
RVAL UINT
|
713
|
+
|
714
|
+
PROTO
|
715
|
+
state
|
716
|
+
|
717
|
+
DESC
|
718
|
+
���ߤΥܥ���ξ��֤��֤��ޤ���
|
719
|
+
�ʲ�������������¤��ä���Τ��֤��ޤ���
|
720
|
+
|
721
|
+
:SDL::Mouse::BUTTON_LMASK
|
722
|
+
���ܥ���
|
723
|
+
:SDL::Mouse::BUTTON_MMASK
|
724
|
+
����ܥ���
|
725
|
+
:SDL::Mouse::BUTTON_RMASK
|
726
|
+
���ܥ���
|
727
|
+
|
728
|
+
SEEALSO
|
729
|
+
Mouse.state
|
730
|
+
|
731
|
+
%%
|
732
|
+
NAME x
|
733
|
+
MOD Event2::MouseMotion
|
734
|
+
TYPE #
|
735
|
+
PURPOSE �ޥ����� X ��ɸ���֤��ޤ���
|
736
|
+
RVAL UINT
|
737
|
+
|
738
|
+
PROTO
|
739
|
+
x
|
740
|
+
|
741
|
+
DESC
|
742
|
+
�ޥ����� X ��ɸ�������������֤��ޤ���
|
743
|
+
|
744
|
+
SEEALSO
|
745
|
+
Mouse.state
|
746
|
+
|
747
|
+
%%
|
748
|
+
NAME y
|
749
|
+
MOD Event2::MouseMotion
|
750
|
+
TYPE #
|
751
|
+
PURPOSE �ޥ����� Y ��ɸ���֤��ޤ���
|
752
|
+
RVAL UINT
|
753
|
+
|
754
|
+
PROTO
|
755
|
+
y
|
756
|
+
|
757
|
+
DESC
|
758
|
+
�ޥ����� Y ��ɸ�������������֤��ޤ���
|
759
|
+
|
760
|
+
SEEALSO
|
761
|
+
Mouse.state
|
762
|
+
|
763
|
+
%%
|
764
|
+
NAME xrel
|
765
|
+
MOD Event2::MouseMotion
|
766
|
+
TYPE #
|
767
|
+
PURPOSE �ޥ����� X ����������Ū��ư�����֤��ޤ���
|
768
|
+
RVAL Integer
|
769
|
+
|
770
|
+
PROTO
|
771
|
+
xrel
|
772
|
+
|
773
|
+
DESC
|
774
|
+
�ޥ����� X ��ɸ������Ū��ư�����������֤��ޤ���
|
775
|
+
|
776
|
+
%%
|
777
|
+
NAME yrel
|
778
|
+
MOD Event2::MouseMotion
|
779
|
+
TYPE #
|
780
|
+
PURPOSE �ޥ����� Y ����������Ū��ư�����֤��ޤ���
|
781
|
+
RVAL Integer
|
782
|
+
|
783
|
+
PROTO
|
784
|
+
yrel
|
785
|
+
|
786
|
+
DESC
|
787
|
+
�ޥ����� Y ��ɸ������Ū��ư�����������֤��ޤ���
|
788
|
+
|
789
|
+
%%
|
790
|
+
NAME button
|
791
|
+
MOD Event2::MouseButtonDown
|
792
|
+
TYPE #
|
793
|
+
PURPOSE �����줿�ܥ�����ֹ���֤��ޤ���
|
794
|
+
|
795
|
+
PROTO
|
796
|
+
button
|
797
|
+
|
798
|
+
DESC
|
799
|
+
�ɤΥܥ������줿�Τ����֤��ޤ���������������Υܥ�����б�����
|
800
|
+
* SDL::Mouse::BUTTON_LEFT
|
801
|
+
* SDL::Mouse::BUTTON_MIDDLE
|
802
|
+
* SDL::Mouse::BUTTON_RIGHT
|
803
|
+
�������ޤ���
|
804
|
+
|
805
|
+
%%
|
806
|
+
NAME press
|
807
|
+
MOD Event2::MouseButtonDown
|
808
|
+
TYPE #
|
809
|
+
PURPOSE �ܥ����������٥�Ȥ��ɤ������֤��ޤ���
|
810
|
+
RVAL true
|
811
|
+
|
812
|
+
PROTO
|
813
|
+
press
|
814
|
+
|
815
|
+
DESC
|
816
|
+
�ܥ����������٥�Ȥ��ɤ������֤��ޤ���
|
817
|
+
��� true ���֤��ޤ���
|
818
|
+
|
819
|
+
SEEALSO
|
820
|
+
Event2::MouseButtonUp#press
|
821
|
+
|
822
|
+
%%
|
823
|
+
NAME x
|
824
|
+
MOD Event2::MouseButtonDown
|
825
|
+
TYPE #
|
826
|
+
PURPOSE �ޥ����� X ��ɸ���֤��ޤ���
|
827
|
+
RVAL UINT
|
828
|
+
|
829
|
+
PROTO
|
830
|
+
x
|
831
|
+
|
832
|
+
DESC
|
833
|
+
�ޥ����� X ��ɸ�������������֤��ޤ���
|
834
|
+
|
835
|
+
SEEALSO
|
836
|
+
Mouse.state
|
837
|
+
|
838
|
+
%%
|
839
|
+
NAME y
|
840
|
+
MOD Event2::MouseButtonDown
|
841
|
+
TYPE #
|
842
|
+
PURPOSE �ޥ����� Y ��ɸ���֤��ޤ���
|
843
|
+
RVAL UINT
|
844
|
+
|
845
|
+
PROTO
|
846
|
+
y
|
847
|
+
|
848
|
+
DESC
|
849
|
+
�ޥ����� Y ��ɸ�������������֤��ޤ���
|
850
|
+
|
851
|
+
SEEALSO
|
852
|
+
Mouse.state
|
853
|
+
|
854
|
+
%%
|
855
|
+
NAME button
|
856
|
+
MOD Event2::MouseButtonUp
|
857
|
+
TYPE #
|
858
|
+
PURPOSE Υ���줿�ܥ�����ֹ���֤��ޤ���
|
859
|
+
|
860
|
+
PROTO
|
861
|
+
button
|
862
|
+
|
863
|
+
DESC
|
864
|
+
�ɤΥܥ���Υ���줿�Τ����֤��ޤ���������������Υܥ�����б�����
|
865
|
+
* SDL::Mouse::BUTTON_LEFT
|
866
|
+
* SDL::Mouse::BUTTON_MIDDLE
|
867
|
+
* SDL::Mouse::BUTTON_RIGHT
|
868
|
+
�������ޤ���
|
869
|
+
|
870
|
+
%%
|
871
|
+
NAME press
|
872
|
+
MOD Event2::MouseButtonUp
|
873
|
+
TYPE #
|
874
|
+
PURPOSE �ܥ����������٥�Ȥ��ɤ������֤��ޤ���
|
875
|
+
RVAL false
|
876
|
+
|
877
|
+
PROTO
|
878
|
+
press
|
879
|
+
|
880
|
+
DESC
|
881
|
+
�ܥ����������٥�Ȥ��ɤ������֤��ޤ���
|
882
|
+
��� false ���֤��ޤ���
|
883
|
+
|
884
|
+
SEEALSO
|
885
|
+
Event2::MouseButtonDown#press
|
886
|
+
|
887
|
+
%%
|
888
|
+
NAME x
|
889
|
+
MOD Event2::MouseButtonUp
|
890
|
+
TYPE #
|
891
|
+
PURPOSE �ޥ����� X ��ɸ���֤��ޤ���
|
892
|
+
RVAL UINT
|
893
|
+
|
894
|
+
PROTO
|
895
|
+
x
|
896
|
+
|
897
|
+
DESC
|
898
|
+
�ޥ����� X ��ɸ�������������֤��ޤ���
|
899
|
+
|
900
|
+
SEEALSO
|
901
|
+
Mouse.state
|
902
|
+
|
903
|
+
%%
|
904
|
+
NAME y
|
905
|
+
MOD Event2::MouseButtonUp
|
906
|
+
TYPE #
|
907
|
+
PURPOSE �ޥ����� Y ��ɸ���֤��ޤ���
|
908
|
+
RVAL UINT
|
909
|
+
|
910
|
+
PROTO
|
911
|
+
y
|
912
|
+
|
913
|
+
DESC
|
914
|
+
�ޥ����� Y ��ɸ�������������֤��ޤ���
|
915
|
+
|
916
|
+
SEEALSO
|
917
|
+
Mouse.state
|
918
|
+
|
919
|
+
%%
|
920
|
+
NAME which
|
921
|
+
MOD Event2::JoyAxis
|
922
|
+
TYPE #
|
923
|
+
PURPOSE ���祤���ƥ��å��ǥХ������ֹ���֤��ޤ���
|
924
|
+
RVAL Integer
|
925
|
+
|
926
|
+
PROTO
|
927
|
+
which
|
928
|
+
|
929
|
+
DESC
|
930
|
+
���٥�Ȥ�ȯ���������祤���ƥ��å��Υ���ǥå������֤��ޤ���
|
931
|
+
|
932
|
+
SEEALSO
|
933
|
+
Joystick
|
934
|
+
Joystick#num_axes
|
935
|
+
|
936
|
+
%%
|
937
|
+
NAME axis
|
938
|
+
MOD Event2::JoyAxis
|
939
|
+
TYPE #
|
940
|
+
PURPOSE ���祤���ƥ��å��μ����ֹ���֤��ޤ���
|
941
|
+
RVAL Integer
|
942
|
+
|
943
|
+
PROTO
|
944
|
+
axis
|
945
|
+
|
946
|
+
DESC
|
947
|
+
���٥�Ȥ�ȯ���������Υ���ǥå������֤��ޤ���
|
948
|
+
|
949
|
+
SEEALSO
|
950
|
+
Joystick
|
951
|
+
|
952
|
+
%%
|
953
|
+
NAME value
|
954
|
+
MOD Event2::JoyAxis
|
955
|
+
TYPE #
|
956
|
+
PURPOSE �����ͤ��֤��ޤ���
|
957
|
+
RVAL -32767 - 32767
|
958
|
+
|
959
|
+
PROTO
|
960
|
+
value
|
961
|
+
|
962
|
+
DESC
|
963
|
+
���θ��ߤΰ��֤� -32767 ���� 32767 �ޤǤ��������֤��ޤ���
|
964
|
+
|
965
|
+
SEEALSO
|
966
|
+
Joystick
|
967
|
+
Joystick#axis
|
968
|
+
|
969
|
+
%%
|
970
|
+
NAME which
|
971
|
+
MOD Event2::JoyBall
|
972
|
+
TYPE #
|
973
|
+
PURPOSE ���祤���ƥ��å��ǥХ������ֹ���֤��ޤ���
|
974
|
+
RVAL Integer
|
975
|
+
|
976
|
+
PROTO
|
977
|
+
which
|
978
|
+
|
979
|
+
DESC
|
980
|
+
���٥�Ȥ�ȯ���������祤���ƥ��å��Υ���ǥå������֤��ޤ���
|
981
|
+
|
982
|
+
SEEALSO
|
983
|
+
Joystick
|
984
|
+
|
985
|
+
%%
|
986
|
+
NAME ball
|
987
|
+
MOD Event2::JoyBall
|
988
|
+
TYPE #
|
989
|
+
PURPOSE ���祤���ƥ��å��Υȥ�å��ܡ�����ֹ���֤��ޤ���
|
990
|
+
RVAL Integer
|
991
|
+
|
992
|
+
PROTO
|
993
|
+
ball
|
994
|
+
|
995
|
+
DESC
|
996
|
+
���٥�Ȥ�ȯ���������祤���ƥ��å��Υȥ�å��ܡ����
|
997
|
+
����ǥå������֤��ޤ���
|
998
|
+
|
999
|
+
SEEALSO
|
1000
|
+
Joystick
|
1001
|
+
Joystick#num_balls
|
1002
|
+
|
1003
|
+
%%
|
1004
|
+
NAME xrel
|
1005
|
+
MOD Event2::JoyBall
|
1006
|
+
TYPE #
|
1007
|
+
PURPOSE X����������Ū��ư�����֤��ޤ���
|
1008
|
+
RVAL Integer
|
1009
|
+
|
1010
|
+
PROTO
|
1011
|
+
xrel
|
1012
|
+
|
1013
|
+
DESC
|
1014
|
+
X����������Ū��ư�����������֤��ޤ���
|
1015
|
+
|
1016
|
+
SEEALSO
|
1017
|
+
Joystick
|
1018
|
+
Joystick#ball
|
1019
|
+
|
1020
|
+
%%
|
1021
|
+
NAME yrel
|
1022
|
+
MOD Event2::JoyBall
|
1023
|
+
TYPE #
|
1024
|
+
PURPOSE Y����������Ū��ư�����֤��ޤ���
|
1025
|
+
RVAL Integer
|
1026
|
+
|
1027
|
+
PROTO
|
1028
|
+
yrel
|
1029
|
+
|
1030
|
+
DESC
|
1031
|
+
Y����������Ū��ư�����������֤��ޤ���
|
1032
|
+
|
1033
|
+
SEEALSO
|
1034
|
+
Joystick
|
1035
|
+
Joystick#ball
|
1036
|
+
|
1037
|
+
%%
|
1038
|
+
NAME which
|
1039
|
+
MOD Event2::JoyHat
|
1040
|
+
TYPE #
|
1041
|
+
PURPOSE ���祤���ƥ��å��ǥХ������ֹ���֤��ޤ���
|
1042
|
+
RVAL Integer
|
1043
|
+
|
1044
|
+
PROTO
|
1045
|
+
which
|
1046
|
+
|
1047
|
+
DESC
|
1048
|
+
���٥�Ȥ�ȯ���������祤���ƥ��å��Υ���ǥå������֤��ޤ���
|
1049
|
+
|
1050
|
+
SEEALSO
|
1051
|
+
Joystick
|
1052
|
+
|
1053
|
+
%%
|
1054
|
+
NAME hat
|
1055
|
+
MOD Event2::JoyHat
|
1056
|
+
TYPE #
|
1057
|
+
PURPOSE ���祤���ƥ��å��Υϥåȥ����å����ֹ���֤��ޤ���
|
1058
|
+
RVAL Integer
|
1059
|
+
|
1060
|
+
PROTO
|
1061
|
+
hat
|
1062
|
+
|
1063
|
+
DESC
|
1064
|
+
���٥�Ȥ�ȯ���������祤���ƥ��å��Υϥåȥ����å��Υ���ǥå������֤��ޤ���
|
1065
|
+
|
1066
|
+
SEEALSO
|
1067
|
+
Joystick
|
1068
|
+
Joystick#num_hats
|
1069
|
+
|
1070
|
+
%%
|
1071
|
+
NAME value
|
1072
|
+
MOD Event2::JoyHat
|
1073
|
+
TYPE #
|
1074
|
+
PURPOSE �ϥåȥ����å��ΰ��֤��֤��ޤ���
|
1075
|
+
RVAL UINT
|
1076
|
+
|
1077
|
+
PROTO
|
1078
|
+
value
|
1079
|
+
|
1080
|
+
DESC
|
1081
|
+
���٥�Ȥ�ȯ�������ϥåȥ����å��θ��ߤΰ��֤�ʲ����ͤ������¤�
|
1082
|
+
�֤��ޤ���
|
1083
|
+
|
1084
|
+
* SDL::Joystick::HAT_CENTERED
|
1085
|
+
* SDL::Joystick::HAT_UP
|
1086
|
+
* SDL::Joystick::HAT_RIGHT
|
1087
|
+
* SDL::Joystick::HAT_DOWN
|
1088
|
+
* SDL::Joystick::HAT_LEFT
|
1089
|
+
* SDL::Joystick::HAT_RIGHTUP
|
1090
|
+
* SDL::Joystick::HAT_RIGHTDOWN
|
1091
|
+
* SDL::Joystick::HAT_LEFTUP
|
1092
|
+
* SDL::Joystick::HAT_LEFTDOWN
|
1093
|
+
|
1094
|
+
%%
|
1095
|
+
NAME which
|
1096
|
+
MOD Event2::JoyButtonDown
|
1097
|
+
TYPE #
|
1098
|
+
PURPOSE ���祤���ƥ��å��ǥХ������ֹ���֤��ޤ���
|
1099
|
+
RVAL Integer
|
1100
|
+
|
1101
|
+
PROTO
|
1102
|
+
which
|
1103
|
+
|
1104
|
+
DESC
|
1105
|
+
���٥�Ȥ�ȯ���������祤���ƥ��å��Υ���ǥå������֤��ޤ���
|
1106
|
+
|
1107
|
+
SEEALSO
|
1108
|
+
Joystick
|
1109
|
+
|
1110
|
+
%%
|
1111
|
+
NAME button
|
1112
|
+
MOD Event2::JoyButtonDown
|
1113
|
+
TYPE #
|
1114
|
+
PURPOSE ���祤���ƥ��å��Υܥ�����ֹ���֤��ޤ���
|
1115
|
+
RVAL Integer
|
1116
|
+
|
1117
|
+
PROTO
|
1118
|
+
button
|
1119
|
+
|
1120
|
+
DESC
|
1121
|
+
���٥�Ȥ�ȯ���������祤���ƥ��å��Υܥ���Υ���ǥå������֤��ޤ���
|
1122
|
+
|
1123
|
+
SEEALSO
|
1124
|
+
Joystick
|
1125
|
+
Joystick#num_buttons
|
1126
|
+
|
1127
|
+
%%
|
1128
|
+
NAME press
|
1129
|
+
MOD Event2::JoyButtonDown
|
1130
|
+
TYPE #
|
1131
|
+
PURPOSE �ܥ����������٥�Ȥ��ɤ������֤��ޤ���
|
1132
|
+
RVAL true
|
1133
|
+
|
1134
|
+
PROTO
|
1135
|
+
press
|
1136
|
+
|
1137
|
+
DESC
|
1138
|
+
�ܥ����������٥�Ȥ��ɤ������֤��ޤ���
|
1139
|
+
��� true ���֤��ޤ���
|
1140
|
+
|
1141
|
+
SEEALSO
|
1142
|
+
Event2::JoyButtonUp#press
|
1143
|
+
Joystick#button
|
1144
|
+
|
1145
|
+
%%
|
1146
|
+
NAME which
|
1147
|
+
MOD Event2::JoyButtonUp
|
1148
|
+
TYPE
|
1149
|
+
PURPOSE ���祤���ƥ��å��ǥХ������ֹ���֤��ޤ���
|
1150
|
+
RVAL Integer
|
1151
|
+
|
1152
|
+
PROTO
|
1153
|
+
which
|
1154
|
+
|
1155
|
+
DESC
|
1156
|
+
���٥�Ȥ�ȯ���������祤���ƥ��å��Υ���ǥå������֤��ޤ���
|
1157
|
+
|
1158
|
+
SEEALSO
|
1159
|
+
Joystick
|
1160
|
+
|
1161
|
+
%%
|
1162
|
+
NAME button
|
1163
|
+
MOD Event2::JoyButtonUp
|
1164
|
+
TYPE #
|
1165
|
+
PURPOSE ���祤���ƥ��å��Υܥ�����ֹ���֤��ޤ���
|
1166
|
+
RVAL Integer
|
1167
|
+
|
1168
|
+
PROTO
|
1169
|
+
button
|
1170
|
+
|
1171
|
+
DESC
|
1172
|
+
���٥�Ȥ�ȯ���������祤���ƥ��å��Υܥ���Υ���ǥå������֤��ޤ���
|
1173
|
+
|
1174
|
+
SEEALSO
|
1175
|
+
Joystick
|
1176
|
+
Joystick#num_buttons
|
1177
|
+
|
1178
|
+
%%
|
1179
|
+
NAME press
|
1180
|
+
MOD Event2::JoyButtonUp
|
1181
|
+
TYPE #
|
1182
|
+
PURPOSE �ܥ����������٥�Ȥ��ɤ������֤��ޤ���
|
1183
|
+
RVAL false
|
1184
|
+
|
1185
|
+
PROTO
|
1186
|
+
press
|
1187
|
+
|
1188
|
+
DESC
|
1189
|
+
�ܥ����������٥�Ȥ��ɤ������֤��ޤ���
|
1190
|
+
��� false ���֤��ޤ���
|
1191
|
+
|
1192
|
+
SEEALSO
|
1193
|
+
Event2::JoyButtonDown#press
|
1194
|
+
Joystick#button
|
1195
|
+
|
1196
|
+
%%
|
1197
|
+
NAME w
|
1198
|
+
MOD Event2::VideoResize
|
1199
|
+
TYPE #
|
1200
|
+
PURPOSE ������ɥ��ο����������֤��ޤ���
|
1201
|
+
RVAL Integer
|
1202
|
+
|
1203
|
+
PROTO
|
1204
|
+
w
|
1205
|
+
|
1206
|
+
DESC
|
1207
|
+
������ɥ����ꥵ�������줿�Ȥ��ˡ�
|
1208
|
+
������ɥ��ο����������������֤��ޤ���
|
1209
|
+
|
1210
|
+
%%
|
1211
|
+
NAME h
|
1212
|
+
MOD Event2::VideoResize
|
1213
|
+
TYPE #
|
1214
|
+
PURPOSE ������ɥ��ο������⤵���֤��ޤ���
|
1215
|
+
RVAL Integer
|
1216
|
+
|
1217
|
+
PROTO
|
1218
|
+
h
|
1219
|
+
|
1220
|
+
DESC
|
1221
|
+
������ɥ����ꥵ�������줿�Ȥ��ˡ�
|
1222
|
+
������ɥ��ο������⤵���������֤��ޤ���
|
1223
|
+
|
1224
|
+
%%
|
1225
|
+
NAME scan
|
1226
|
+
MOD Key
|
1227
|
+
TYPE .
|
1228
|
+
PURPOSE �����ܡ��ɤξ��֤Υ��ʥåץ���åȤ�Ȥ�ޤ���
|
1229
|
+
|
1230
|
+
PROTO
|
1231
|
+
scan
|
1232
|
+
|
1233
|
+
DESC
|
1234
|
+
�����ܡ��ɤξ��֤Υ��ʥåץ���åȤ�Ȥ�ޤ���
|
1235
|
+
@[Key.press?]��Ȥ����δؿ��Ǽ�ä����֤ξ�������ޤ���
|
1236
|
+
|
1237
|
+
���ξ��֤� @[Event2.poll] �� @[Event2.wait] ��ƤФʤ��ȹ�������ޤ���
|
1238
|
+
|
1239
|
+
SEEALSO
|
1240
|
+
Key.press?
|
1241
|
+
Event2::KeyDown
|
1242
|
+
Event2::KeyUp
|
1243
|
+
Event2.poll
|
1244
|
+
|
1245
|
+
%%
|
1246
|
+
NAME press?
|
1247
|
+
MOD Key
|
1248
|
+
TYPE .
|
1249
|
+
PURPOSE �����ܡ��ɤ��Ƥ��뤫�ɤ������֤��ޤ���
|
1250
|
+
RVAL true/false
|
1251
|
+
|
1252
|
+
PROTO
|
1253
|
+
press?(key)
|
1254
|
+
|
1255
|
+
DESC
|
1256
|
+
$[key]�ǻ��ꤷ���������Ƥ��뤫�ɤ������֤��ޤ����������֤��ͤ�
|
1257
|
+
�Ǥ�Ƕ�˸Ƥ�� @[Key.scan] �λ����Ǥξ��֤˴𤭤ޤ���
|
1258
|
+
$[key] �Ȥ���((<��������ܥ�>))��Ϳ���Ƥ���������
|
1259
|
+
|
1260
|
+
SEEALSO
|
1261
|
+
Key.scan
|
1262
|
+
Event2::KeyDown
|
1263
|
+
Event2::KeyUp
|
1264
|
+
|
1265
|
+
%%
|
1266
|
+
NAME mod_state
|
1267
|
+
MOD Key
|
1268
|
+
TYPE .
|
1269
|
+
PURPOSE ��ǥ��ե����������ξ��֤����ޤ���
|
1270
|
+
RVAL UINT
|
1271
|
+
|
1272
|
+
PROTO
|
1273
|
+
mod_state
|
1274
|
+
modState
|
1275
|
+
|
1276
|
+
DESC
|
1277
|
+
��ǥ��ե���������(CTRL��ALT�ʤ�)�ξ��֤��֤��ޤ���
|
1278
|
+
�ʲ����ͤ������¤�����ޤ���
|
1279
|
+
:SDL::Key::MOD_NONE
|
1280
|
+
���ⲡ���Ƥ��ʤ�
|
1281
|
+
:SDL::Key::MOD_LSHIFT
|
1282
|
+
�����ե�
|
1283
|
+
:SDL::Key::MOD_RSHIFT
|
1284
|
+
�����ե�
|
1285
|
+
:SDL::Key::MOD_LCTRL
|
1286
|
+
������ȥ�����
|
1287
|
+
:SDL::Key::MOD_RCTRL
|
1288
|
+
������ȥ�����
|
1289
|
+
:SDL::Key::MOD_LALT
|
1290
|
+
��ALT
|
1291
|
+
:SDL::Key::MOD_RALT
|
1292
|
+
��ALT
|
1293
|
+
:SDL::Key::MOD_LMETA
|
1294
|
+
�������
|
1295
|
+
:SDL::Key::MOD_RMETA
|
1296
|
+
�������
|
1297
|
+
:SDL::Key::MOD_NUM
|
1298
|
+
NumLock
|
1299
|
+
:SDL::Key::MOD_CAPS
|
1300
|
+
Caps
|
1301
|
+
:SDL::Key::MOD_MODE
|
1302
|
+
|
1303
|
+
�ʲ��Τ褦��������������Ƥ��ޤ���
|
1304
|
+
* SDL::Key::MOD_CTRL = SDL::Key::MOD_LCTRL|SDL::Key::MOD_RCTRL
|
1305
|
+
* SDL::Key::MOD_SHIFT = SDL::Key::MOD_LSHIFT|SDL::Key::MOD_RSHIFT
|
1306
|
+
* SDL::Key::MOD_ALT = SDL::Key::MOD_LALT|SDL::Key::MOD_RALT
|
1307
|
+
* SDL::Key::MOD_META = SDL::Key::MOD_LMETA|SDL::Key::MOD_RMETA
|
1308
|
+
|
1309
|
+
SEEALSO
|
1310
|
+
Key.scan
|
1311
|
+
|
1312
|
+
%%
|
1313
|
+
NAME get_key_name
|
1314
|
+
MOD Key
|
1315
|
+
TYPE .
|
1316
|
+
PURPOSE ��������ܥ���б�����̾�������ޤ���
|
1317
|
+
RVAL String
|
1318
|
+
|
1319
|
+
PROTO
|
1320
|
+
get_key_name(key)
|
1321
|
+
getKeyName(key)
|
1322
|
+
|
1323
|
+
DESC
|
1324
|
+
$[key] ��Ϳ����((<��������ܥ�>))���б�����ʸ������֤��ޤ���
|
1325
|
+
|
1326
|
+
%%
|
1327
|
+
NAME enable_key_repeat
|
1328
|
+
MOD Key
|
1329
|
+
TYPE .
|
1330
|
+
PURPOSE ������ԡ��ȥ졼�Ȥ����ꤷ�ޤ���
|
1331
|
+
|
1332
|
+
PROTO
|
1333
|
+
enable_key_repeat(delay,interval)
|
1334
|
+
enableKeyRepeat(delay,interval)
|
1335
|
+
|
1336
|
+
DESC
|
1337
|
+
������ԡ��ȥ졼�Ȥ�ͭ���ˤ��ޤ���
|
1338
|
+
$[delay] �ϡ���ԡ��Ȥ����Ϥ����ޤǤ�
|
1339
|
+
���֤���ꤷ�ޤ���
|
1340
|
+
���θ�ˡ�$[interval]�ǻ��ꤵ�줿
|
1341
|
+
�졼�Ȥǥ�ԡ��Ȥ��Ϥޤ�ޤ���
|
1342
|
+
$[delay] �� $[interval] ��
|
1343
|
+
�ɤ����ߥꥻ�����ñ�̤ǻ��ꤷ�ޤ���
|
1344
|
+
|
1345
|
+
�ǥե�����ͤϤ��줾�� SDL::Key::DEFAULT_REPEAT_DELAY ��
|
1346
|
+
SDL::Key::DEFAULT_REPEAT_INTERVAL �Ȥ���������������Ƥ��ޤ���
|
1347
|
+
|
1348
|
+
EXCEPTION
|
1349
|
+
�졼�Ȥ��ѹ��˼��Ԥ�����㳰 SDL::Error ��ȯ�����ޤ���
|
1350
|
+
|
1351
|
+
SEEALSO
|
1352
|
+
Key.disable_key_repeat
|
1353
|
+
|
1354
|
+
%%
|
1355
|
+
NAME disable_key_repeat
|
1356
|
+
MOD Key
|
1357
|
+
TYPE .
|
1358
|
+
PURPOSE ������ԡ��Ȥ�̵���ˤ��ޤ���
|
1359
|
+
|
1360
|
+
PROTO
|
1361
|
+
disable_key_repeat
|
1362
|
+
disableKeyRepeat
|
1363
|
+
|
1364
|
+
DESC
|
1365
|
+
������ԡ��Ȥ�̵���ˤ��ޤ���
|
1366
|
+
|
1367
|
+
EXCEPTION *
|
1368
|
+
|
1369
|
+
SEEALSO
|
1370
|
+
Key.enable_key_repeat
|
1371
|
+
|
1372
|
+
%%
|
1373
|
+
NAME state
|
1374
|
+
MOD Mouse
|
1375
|
+
TYPE .
|
1376
|
+
PURPOSE ���ߤΥޥ����ξ��֤����ޤ���
|
1377
|
+
RVAL [Integer, Integer, true/false, true/false, true/false]
|
1378
|
+
PROTO
|
1379
|
+
state
|
1380
|
+
|
1381
|
+
DESC
|
1382
|
+
���ߤΥޥ����ξ��֤�ʲ��Τ褦������5�Ĥ���������ޤ���
|
1383
|
+
[ �ޥ�����X��ɸ, �ޥ�����Y��ɸ, ���ܥ�������Ƥ��뤫��, ����ܥ�������Ƥ��뤫��, ���ܥ�������Ƥ��뤫�� ]
|
1384
|
+
|
1385
|
+
EXAMPLE
|
1386
|
+
x, y, lbutton, * = SDL::Mouse.state
|
1387
|
+
if lbutton
|
1388
|
+
print "�ޥ������ܥ��� ��������ޤ�����\n"
|
1389
|
+
end
|
1390
|
+
|
1391
|
+
SEEALSO
|
1392
|
+
Event2::MouseMotion
|
1393
|
+
Event2::MouseButtonDown
|
1394
|
+
Event2::MouseButtonUp
|
1395
|
+
|
1396
|
+
%%
|
1397
|
+
NAME warp
|
1398
|
+
MOD Mouse
|
1399
|
+
TYPE .
|
1400
|
+
PURPOSE �ޥ�����������ΰ��֤åȤ��ޤ���
|
1401
|
+
|
1402
|
+
PROTO
|
1403
|
+
warp(x,y)
|
1404
|
+
|
1405
|
+
DESC
|
1406
|
+
�ޥ�����������ΰ��֤åȤ��ޤ���(�ޥ����⡼����٥�Ȥ�ȯ�������ޤ�)
|
1407
|
+
|
1408
|
+
SEEALSO
|
1409
|
+
Event2::MouseMotion
|
1410
|
+
|
1411
|
+
%%
|
1412
|
+
NAME show
|
1413
|
+
MOD Mouse
|
1414
|
+
TYPE .
|
1415
|
+
PURPOSE �������뤬���̤�ɽ�������褦�ˤ��ޤ���
|
1416
|
+
|
1417
|
+
PROTO
|
1418
|
+
show
|
1419
|
+
|
1420
|
+
DESC
|
1421
|
+
���������ɽ�����ޤ���
|
1422
|
+
|
1423
|
+
��������Ϻǽ��ɽ������Ƥ��ޤ�������ɽ���ˤ��뤳�Ȥ�Ǥ��ޤ���
|
1424
|
+
|
1425
|
+
SEEALSO
|
1426
|
+
Mouse.hide
|
1427
|
+
Mouse.show?
|
1428
|
+
|
1429
|
+
%%
|
1430
|
+
NAME hide
|
1431
|
+
MOD Mouse
|
1432
|
+
TYPE .
|
1433
|
+
PURPOSE �������뤬���̤�ɽ������ʤ��褦�ˤ��ޤ���
|
1434
|
+
|
1435
|
+
PROTO
|
1436
|
+
hide
|
1437
|
+
|
1438
|
+
DESC
|
1439
|
+
�����������ɽ���ˤ��ޤ���
|
1440
|
+
|
1441
|
+
SEEALSO
|
1442
|
+
Mouse.show
|
1443
|
+
Mouse.show?
|
1444
|
+
|
1445
|
+
%%
|
1446
|
+
NAME show?
|
1447
|
+
MOD Mouse
|
1448
|
+
TYPE .
|
1449
|
+
PURPOSE �������뤬���̤�ɽ������Ƥ��뤫�ɤ������֤��ޤ���
|
1450
|
+
RVAL true/false
|
1451
|
+
|
1452
|
+
PROTO
|
1453
|
+
show?
|
1454
|
+
|
1455
|
+
DESC
|
1456
|
+
�������뤬���̤�ɽ������Ƥ���ʤ� true�� ���ʤ���� false ���֤��ޤ���
|
1457
|
+
|
1458
|
+
SEEALSO
|
1459
|
+
Mouse.show
|
1460
|
+
Mouse.hide
|
1461
|
+
|
1462
|
+
%%
|
1463
|
+
NAME set_cursor
|
1464
|
+
MOD Mouse
|
1465
|
+
TYPE .
|
1466
|
+
PURPOSE ���ߥ����ƥ��֤ʥޥ���������������ꤷ�ޤ���
|
1467
|
+
|
1468
|
+
PROTO
|
1469
|
+
set_cursor(bitmap,white,black,transparent,inverted,hot_x=0,hot_y=0)
|
1470
|
+
setCursor(bitmap,white,black,transparent,inverted,hot_x=0,hot_y=0)
|
1471
|
+
|
1472
|
+
DESC
|
1473
|
+
���ߥ����ƥ��֤ʥ����������ꤵ�줿��Τ����ꤷ�ޤ���
|
1474
|
+
�������뤬���߸�������֤ˤ���Ȥ��ϡ������ѹ��Ϥ�����ɽ����ȿ�Ǥ���ޤ���
|
1475
|
+
|
1476
|
+
��������� $[bitmap] �� @[Surface] �Υ�������ꤷ�ޤ���
|
1477
|
+
������������2���Ǻ���ޤ���$[white] ������б�����ԥ������͡�
|
1478
|
+
$[black] �������б�����ԥ������͡�$[transparent]��Ʃ�����б�����ԥ������͡�
|
1479
|
+
$[inverted] ��ȿž��(�ʤ���й�)���б�����ԥ������ͤǤ���
|
1480
|
+
�ޤ���������β����� 8 ���ܿ��Ǥʤ���Ф����ޤ���
|
1481
|
+
|
1482
|
+
$[hot_x]��$[hot_y] �ϥӥåȥޥåפΤɤ�����ޥ�����������ΰ��֤Ȥ��뤫��
|
1483
|
+
���ꤷ�ޤ���
|
1484
|
+
|
1485
|
+
SEEALSO
|
1486
|
+
Surface
|
1487
|
+
|