Go to the documentation of this file.
51 #ifndef HAL_GFX_EVENT_H__
52 #define HAL_GFX_EVENT_H__
65 #define HAL_GFX_EVENT_HIDE_CURSOR (1 << 1)
153 int hal_gfx_event_init(
int flags,
int mouse_init_x,
int mouse_init_y,
int mouse_max_x,
int mouse_max_y);
264 #endif //HAL_GFX_EVENT_H__
void hal_gfx_timer_destroy(int timer_id)
Destroy timer, need to porting.
int hal_gfx_event_init(int flags, int mouse_init_x, int mouse_init_y, int mouse_max_x, int mouse_max_y)
event init function
void hal_gfx_event_force_cursor_xy(int x, int y)
force setting cursy to [x,y]
@ MOUSE_EVENT_MAX
max event flag
uintptr_t hal_gfx_init_triple_fb(int layer, uintptr_t fb0_phys, uintptr_t fb1_phys, uintptr_t fb2_phys)
Init triple framebuffer (Not USED)
@ MOUSE_STATE_MIDDLE_CLICKED
uintptr_t hal_gfx_swap_fb(int layer)
Swap layer to current layer.
@ MOUSE_EVENT_RIGHT_CLICK
right click event
void hal_gfx_timer_stop(int timer_id)
Stop timer, need to porting.
int mouse_event
mouse event
int hal_gfx_timer_create(void)
Create a timer, need to porting.
@ MOUSE_EVENT_LEFT_RELEASE
left release event
@ MOUSE_EVENT_SCROLL_DOWN
scroll down event
int mouse_dx
delta x-coordinate for mouse
hal_gfx_kb_event_t
KeyBoard Event for Graphics.
char kb_key
keyboard key value
Event Structure for Graphics.
int kb_event
keyboard event
int hal_gfx_timer_set_periodic(int timer_id, uint32_t timeout_milisecs)
Set periodic timer, need to porting.
@ MOUSE_EVENT_MIDDLE_RELEASE
middle release event
@ MOUSE_STATE_RIGHT_CLICKED
@ MOUSE_EVENT_NONE
none event
int hal_gfx_timer_set_oneshot(int timer_id, uint32_t timeout_milisecs)
Set one-shot timer, need to porting.
int hal_gfx_event_wait(hal_gfx_event_t *event, int block_until_event)
wait event init function
hal_gfx_mouse_event_t
Mouse Event for Graphics.
int mouse_dy
delta y-coordinate for mouse
@ MOUSE_EVENT_LEFT_CLICK
left click event
uint32_t timer_expirations
expire time
hal_gfx_mouse_state_t
Mouse State for Graphics.
int mouse_x
x-coordinate for mouse
@ MOUSE_EVENT_SCROLL_UP
scroll up event
@ MOUSE_EVENT_RIGHT_RELEASE
right release event
@ MOUSE_EVENT_MIDDLE_CLICK
middle click event
int mouse_state
mouse state
int mouse_y
y-coordinate for mouse
@ MOUSE_STATE_LEFT_CLICKED