The static class that handles input data from the mouse and touchscreen.
関連クラス: Input, Sprite_Destination
Name | Type | Description |
---|---|---|
keyRepeatWait |
Number | [static] The wait time of the pseudo key repeat in frames. |
keyRepeatInterval |
Number | [static] The interval of the pseudo key repeat in frames. |
wheelX |
Number | [static][read-only] The horizontal scroll amount. |
wheelY |
Number | [static][read-only] The vertical scroll amount. |
x |
Number | [static][read-only] The x coordinate on the canvas area of the latest touch event. |
y |
Number | [static][read-only] The y coordinate on the canvas area of the latest touch event. |
date |
Number | [static][read-only] The time of the last input in milliseconds. |
_mousePressed |
Boolean | [static] |
_screenPressed |
Boolean | [static] |
_pressedTime |
Number | [static] |
_events |
MV.TouchInputEvents | [static] |
_triggered |
Boolean | [static] |
_cancelled |
Boolean | [static] |
_moved |
Boolean | [static] |
_released |
Boolean | [static] |
_wheelX |
Number | [static] |
_wheelY |
Number | [static] |
_x |
Number | [static] |
_y |
Number | [static] |
_date |
Number | [static] |
Name | Type | Description |
---|---|---|
x |
Number | |
y |
Number |
Name | Type | Description |
---|---|---|
event |
MouseEvent |
Name | Type | Description |
---|---|---|
event |
MouseEvent |
Name | Type | Description |
---|---|---|
event |
MouseEvent |
Name | Type | Description |
---|---|---|
event |
MouseEvent |
Name | Type | Description |
---|---|---|
event |
MouseEvent |
Name | Type | Description |
---|---|---|
x |
Number | |
y |
Number |
Name | Type | Description |
---|---|---|
event |
PointerEvent |
Name | Type | Description |
---|---|---|
x |
Number | |
y |
Number |
Name | Type | Description |
---|---|---|
event |
MouseEvent |
Name | Type | Description |
---|---|---|
event |
TouchEvent |
Name | Type | Description |
---|---|---|
event |
TouchEvent |
Name | Type | Description |
---|---|---|
event |
TouchEvent |
Name | Type | Description |
---|---|---|
event |
TouchEvent |
Name | Type | Description |
---|---|---|
x |
Number | |
y |
Number |
Name | Type | Description |
---|---|---|
event |
WheelEvent |
Clears all the touch data.
Initializes the touch system.
Checks whether the right mouse button is just pressed.
Checks whether the left mouse button or touchscreen is kept depressed.
Checks whether the mouse or a finger on the touchscreen is moved.
Checks whether the mouse button or touchscreen is currently pressed down.
Checks whether the left mouse button or touchscreen is released.
Checks whether the left mouse button or touchscreen is just pressed or a pseudo key repeat occurred.
Checks whether the left mouse button or touchscreen is just pressed.
Updates the touch data.