Public Member Functions | |
void | register_event (Key_event *key_event) |
void | remove_event (Key_event *key_event) |
void | register_event (Click_event *click_event) |
void | remove_event (Click_event *click_event) |
void | register_state (Joystick_state *joystick_state) |
void | remove_state (Joystick_state *joystick_state) |
void | clear (void) |
void | update (void) |
bool | has_quit_event (void) const |
bool | has_focus (void) const |
bool | is_visible (void) const |
bool | is_key_pressing (SDLKey key) const |
bool | is_button_pressing (Uint8 button) const |
PointF | cursor_position (void) const |
カーソル位置を返す More... | |
void | set_window_rect (const RectF &offset_magnify) |
PointF Input_events::cursor_position | ( | void | ) | const |
カーソル位置を返す
ウィンドウにおけるカーソル位置の座標を返す。
ウィンドウにフォーカスがないときは (-1, -1) を返す。