Loading...
Searching...
No Matches
mouse.c
Go to the documentation of this file.
#ifdef ARC_GLFW_INPUT
#include "arc/input/mouse.h"
#include "mouse.h"
#include "arc/math/point.h"
#include "arc/std/errno.h"
#include <stdlib.h>
#include <stdint.h>
void ARC_Mouse_CreateWithInput(ARC_Keyboard **keyboard, ARC_Input *input){
}
void ARC_Mouse_Destroy(ARC_Mouse *mouse){
}
void ARC_Mouse_UpdateButton(ARC_Mouse *mouse, uint8_t button, uint32_t *buttons, uint32_t mask){
}
void ARC_Mouse_Update(ARC_Mouse *mouse){
}
ARC_Point *ARC_Mouse_GetCoords(ARC_Mouse *mouse){
return mouse->coords;
}
ARC_MouseState ARC_Mouse_GetState(ARC_Mouse *mouse, ARC_MouseButton button){
return mouse->buttons[button];
}
int32_t *ARC_Mouse_GetScrollY(ARC_Mouse *mouse){
return mouse->scrollY;
}
#endif // ARC_SDL_INPUT
errno.h
mouse.h
ARC_Mouse_GetState
ARC_MouseState ARC_Mouse_GetState(ARC_Mouse *mouse, ARC_MouseButton button)
Definition mouse.c:99
ARC_Mouse_GetCoords
ARC_Point * ARC_Mouse_GetCoords(ARC_Mouse *mouse)
Definition mouse.c:95
ARC_MouseButton
ARC_MouseButton
Definition mouse.h:24
ARC_Mouse_GetScrollY
int32_t * ARC_Mouse_GetScrollY(ARC_Mouse *mouse)
Definition mouse.c:103
ARC_MouseState
ARC_MouseState
Definition mouse.h:18
ARC_Mouse_Update
void ARC_Mouse_Update(ARC_Mouse *mouse)
Definition mouse.c:61
ARC_Mouse_Destroy
void ARC_Mouse_Destroy(ARC_Mouse *mouse)
Definition mouse.c:31
ARC_Mouse_CreateWithInput
void ARC_Mouse_CreateWithInput(ARC_Mouse **mouse, ARC_Input *input)
Definition mouse.c:12
mouse.h
ARC_Mouse_UpdateButton
void ARC_Mouse_UpdateButton(ARC_Mouse *mouse, uint8_t button, uint32_t *buttons, uint32_t mask)
Definition mouse.c:41
point.h
ARC_Input
Definition input.h:8
ARC_Keyboard
Definition keyboard.h:7
ARC_Mouse
Definition mouse.h:8
ARC_Mouse::coords
ARC_Point * coords
Definition mouse.h:10
ARC_Mouse::buttons
ARC_MouseState * buttons
Definition mouse.h:13
ARC_Mouse::scrollY
int32_t * scrollY
Definition mouse.h:11
ARC_Point
Definition point.h:10