趣味で作ってるロボット用ソフトウェア
 All Classes Files Functions Enumerations Enumerator Friends Pages
Public Member Functions | List of all members
hrk::Input_events Class Reference

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)
 

Member Function Documentation

PointF Input_events::cursor_position ( void  ) const

カーソル位置を返す

ウィンドウにおけるカーソル位置の座標を返す。
ウィンドウにフォーカスがないときは (-1, -1) を返す。


The documentation for this class was generated from the following files: