GL CHOCO ENGINE
Loading...
Searching...
No Matches
mouse_event.h
Go to the documentation of this file.
1
16#ifndef GLCE_ENGINE_CORE_MOUSE_EVENT_H
17#define GLCE_ENGINE_CORE_MOUSE_EVENT_H
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23#include <stdbool.h>
24
29typedef enum {
33
38typedef struct mouse_event_args {
39 int x;
40 int y;
41 bool pressed;
43
48typedef struct mouse_event {
52
53#ifdef __cplusplus
54}
55#endif
56#endif
struct mouse_event mouse_event_t
マウスイベント構造体
struct mouse_event_args mouse_event_args_t
マウスイベント付随情報
mouse_button_t
マウスボタン種別リスト(中ボタンは多分使わないので省略した)
Definition: mouse_event.h:29
@ MOUSE_BUTTON_LEFT
Definition: mouse_event.h:30
@ MOUSE_BUTTON_RIGHT
Definition: mouse_event.h:31
マウスイベント付随情報
Definition: mouse_event.h:38
int y
Definition: mouse_event.h:40
int x
Definition: mouse_event.h:39
bool pressed
Definition: mouse_event.h:41
マウスイベント構造体
Definition: mouse_event.h:48
mouse_event_args_t event_args
Definition: mouse_event.h:50
mouse_button_t button
Definition: mouse_event.h:49