Implemented a ton more things, added BaseApp.h to provide common code to UWP apps.

This commit is contained in:
Reece Mackie 2019-04-25 18:08:42 +01:00
commit 98e1097364

View file

@ -1018,6 +1018,8 @@ void SetClipboardText(const char *text)
#endif
}
#if !defined(PLATFORM_UWP)
// Show mouse cursor
void ShowCursor(void)
{
@ -1066,6 +1068,8 @@ void DisableCursor(void)
cursorHidden = true;
}
#endif
// Set background color (framebuffer clear color)
void ClearBackground(Color color)
{
@ -3090,7 +3094,7 @@ static void PollInputEvents(void)
#if defined(PLATFORM_UWP)
// Register previous keys states
for (int i = 0; i < 512; i++)previousKeyState[i] = currentKeyState[i];
for (int i = 0; i < 512; i++) previousKeyState[i] = currentKeyState[i];
// Register previous mouse states
previousMouseWheelY = currentMouseWheelY;
@ -4589,7 +4593,7 @@ static void *GamepadThread(void *arg)
#if defined(PLATFORM_UWP)
void UWPRegisterKey(int key, int action) {
void UWPRegisterKey(int key, char action) {
//Convert from virtualKey
int actualKey = -1;
@ -4672,9 +4676,9 @@ void UWPScrollWheel(int delta) {
currentMouseWheelY += delta;
}
void UWPMouseMovement(float x, float y) {
mousePosition.x += x;
mousePosition.y += y;
void UWPMousePosition(float x, float y) {
mousePosition.x = x;
mousePosition.y = y;
}
void UWPMarkCursor(bool hidden) {