Ne methods Draw_ShowCursor and Input_GetPointerDown
This commit is contained in:
12
src/Draw.c
12
src/Draw.c
@@ -1155,3 +1155,15 @@ void Draw_SaveScreenshoot(char *filename) {
|
||||
free(pixelData);
|
||||
#endif
|
||||
}
|
||||
|
||||
/////////////////////////////
|
||||
// Draw_ShowCursor
|
||||
//
|
||||
//
|
||||
void Draw_ShowCursor(int showCursor) {
|
||||
if (showCursor) {
|
||||
SDL_ShowCursor(31);
|
||||
} else {
|
||||
SDL_ShowCursor(0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -168,4 +168,10 @@ void Draw_SaveRGBAToPNG(char *filename, unsigned char *data, int width,
|
||||
//
|
||||
void Draw_SaveScreenshoot(char *filename);
|
||||
|
||||
/////////////////////////////
|
||||
// Draw_ShowCursor
|
||||
//
|
||||
//
|
||||
void Draw_ShowCursor(int showCursor);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -110,6 +110,13 @@ void Input_SetPointerDown(int pointerDown) {
|
||||
_pointerDown = pointerDown;
|
||||
}
|
||||
|
||||
/////////////////////////////
|
||||
// Input_GetPointerDown
|
||||
//
|
||||
int Input_GetPointerDown(){
|
||||
return _pointerDown;
|
||||
}
|
||||
|
||||
/////////////////////////////
|
||||
// Input_GetPointerPosition
|
||||
//
|
||||
|
||||
@@ -75,6 +75,11 @@ void Input_SetPointerPosition(float x, float y);
|
||||
//
|
||||
void Input_SetPointerDown(int pointerDown);
|
||||
|
||||
/////////////////////////////
|
||||
// Input_GetPointerDown
|
||||
//
|
||||
int Input_GetPointerDown();
|
||||
|
||||
/////////////////////////////
|
||||
// Input_GetPointerPosition
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user