added scrollY functions

This commit is contained in:
herbglitch 2023-02-23 16:31:18 -07:00
parent b2055f667c
commit 7fe9d6d491
3 changed files with 15 additions and 7 deletions

View file

@ -6,6 +6,7 @@ extern "C" {
#endif
#include "arc/math/point.h"
#include <stdint.h>
typedef struct ARC_Mouse ARC_Mouse;
@ -32,6 +33,7 @@ void ARC_Mouse_Destroy(ARC_Mouse *mouse);
void ARC_Mouse_Update(ARC_Mouse *mouse);
ARC_Point *ARC_Mouse_GetCoords(ARC_Mouse *mouse);
ARC_MouseState ARC_Mouse_GetState(ARC_Mouse *mouse, ARC_MouseButton button);
int32_t *ARC_Mouse_GetScrollY(ARC_Mouse *mouse);
#ifdef __cplusplus
}

View file

@ -9,7 +9,7 @@
struct ARC_Mouse {
SDL_Event *event;
ARC_Point *coords;
int32_t *scroll;
int32_t *scrollY;
ARC_MouseState *buttons;
uint8_t *buttonsReleased;