Loading...
Searching...
No Matches
mouse.c
Go to the documentation of this file.
#ifdef ARC_NONE_INPUT
#include "arc/input/mouse.h"
#include <stdio.h>
void ARC_Mouse_CreateWithInput(ARC_Mouse **mouse, ARC_Input *input){
printf("No Input Backend Selected\n");
}
void ARC_Mouse_Destroy(ARC_Mouse *mouse){
printf("No Input Backend Selected\n");
}
void ARC_Mouse_UpdateButton(ARC_Mouse *mouse, uint8_t button, uint32_t *buttons, uint32_t mask){
printf("No Input Backend Selected\n");
}
void ARC_Mouse_Update(ARC_Mouse *mouse){
printf("No Input Backend Selected\n");
}
ARC_Point *ARC_Mouse_GetCoords(ARC_Mouse *mouse){
printf("No Input Backend Selected\n");
return NULL;
}
ARC_MouseState ARC_Mouse_GetState(ARC_Mouse *mouse, ARC_MouseButton button){
printf("No Input Backend Selected\n");
return ARC_MOUSE_NONE;
}
int32_t *ARC_Mouse_GetScrollY(ARC_Mouse *mouse){
printf("No Input Backend Selected\n");
return NULL;
}
#endif // !ARC_INPUT_NONE
ARC_Input
struct ARC_Input ARC_Input
predefien ARC_Input so as not to get circular reference
Definition input.h:17
mouse.h
ARC_Mouse_GetState
ARC_MouseState ARC_Mouse_GetState(ARC_Mouse *mouse, ARC_MouseButton button)
ARC_Mouse_GetCoords
ARC_Point * ARC_Mouse_GetCoords(ARC_Mouse *mouse)
ARC_MouseButton
ARC_MouseButton
Definition mouse.h:24
ARC_Mouse_GetScrollY
int32_t * ARC_Mouse_GetScrollY(ARC_Mouse *mouse)
ARC_MouseState
ARC_MouseState
Definition mouse.h:18
ARC_MOUSE_NONE
@ ARC_MOUSE_NONE
Definition mouse.h:19
ARC_Mouse_Update
void ARC_Mouse_Update(ARC_Mouse *mouse)
ARC_Mouse_Destroy
void ARC_Mouse_Destroy(ARC_Mouse *mouse)
ARC_Mouse
struct ARC_Mouse ARC_Mouse
Definition mouse.h:16
ARC_Mouse_CreateWithInput
void ARC_Mouse_CreateWithInput(ARC_Mouse **mouse, ARC_Input *input)
ARC_Point
Definition point.h:10