Moved some code around and cleaned things a bit.

This commit is contained in:
2021-02-22 08:08:12 +11:00
parent 424577f835
commit adc7f5e208
14 changed files with 405 additions and 77 deletions

View File

@ -0,0 +1,26 @@
// Copyright (c) 2021 Dominic Msters
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
#include "win32platform.h"
platform_t * platformInit() {
platform_t *platform = malloc(sizeof(platform_t));
platform->name = WIN32_NAME;
platform->inputSourceCount = 0;
platform->inputSources = NULL;
platform->inputStates = NULL;
return platform;
}
void platformDispose(platform_t *platform) {
free(platform);
}
float platformInputGetState(platforminputsource_t *source) {
return 0;
}

View File

@ -0,0 +1,9 @@
// Copyright (c) 2021 Dominic Msters
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
#pragma once
#include "../platform.h"
#define WIN32_NAME "Win32"