Archeus 0.0.0
A C library and game engine that focuses on documentation
Loading...
Searching...
No Matches
mouse.h
Go to the documentation of this file.
1#ifndef ARC_GRAPHICS_MOUSE_H_
2#define ARC_GRAPHICS_MOUSE_H_
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#include "arc/math/point.h"
9#include <stdint.h>
10
11/**
12 * @brief predefien ARC_Input so as not to get circular reference
13*/
14typedef struct ARC_Input ARC_Input;
15
16typedef struct ARC_Mouse ARC_Mouse;
17
23
31
32#define ARC_MOUSE_BUTTON_NUM 5
33
35
41
42#ifdef __cplusplus
43}
44#endif
45
46#endif // !ARC_GRAPHICS_MOUSE_H_
struct ARC_Input ARC_Input
predefien ARC_Input so as not to get circular reference
Definition input.h:17
ARC_MouseState ARC_Mouse_GetState(ARC_Mouse *mouse, ARC_MouseButton button)
ARC_Point * ARC_Mouse_GetCoords(ARC_Mouse *mouse)
ARC_MouseButton
Definition mouse.h:24
@ ARC_MOUSE_X2
Definition mouse.h:29
@ ARC_MOUSE_LEFT
Definition mouse.h:25
@ ARC_MOUSE_RIGHT
Definition mouse.h:27
@ ARC_MOUSE_X1
Definition mouse.h:28
@ ARC_MOUSE_MIDDLE
Definition mouse.h:26
int32_t * ARC_Mouse_GetScrollY(ARC_Mouse *mouse)
ARC_MouseState
Definition mouse.h:18
@ ARC_MOUSE_RELEASED
Definition mouse.h:21
@ ARC_MOUSE_PRESSED
Definition mouse.h:20
@ ARC_MOUSE_NONE
Definition mouse.h:19
void ARC_Mouse_Update(ARC_Mouse *mouse)
void ARC_Mouse_Destroy(ARC_Mouse *mouse)
struct ARC_Mouse ARC_Mouse
Definition mouse.h:16
void ARC_Mouse_CreateWithInput(ARC_Mouse **mouse, ARC_Input *input)