Add missing platform methods on Windows backend
This commit is contained in:
parent
f0a1dc2f20
commit
9d3eb24d23
2 changed files with 10 additions and 1 deletions
|
@ -18,9 +18,10 @@
|
|||
#include "utility.hpp"
|
||||
#include "gfx_vulkan_commandbuffer.hpp"
|
||||
|
||||
#include <platform.hpp>
|
||||
|
||||
#ifdef PLATFORM_LINUX
|
||||
#include <SDL2/SDL.h>
|
||||
#include <platform.hpp>
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -32,6 +32,14 @@ const char* platform::get_name() {
|
|||
return "Windows";
|
||||
}
|
||||
|
||||
bool platform::supports_feature(const PlatformFeature feature) {
|
||||
return false;
|
||||
}
|
||||
|
||||
std::vector<const char*> platform::get_native_surface_extension() {
|
||||
return {"VK_KHR_surface", "VK_KHR_win32_surface"};
|
||||
}
|
||||
|
||||
bool platform::get_key_down(const InputButton key) {
|
||||
if (inputToKeyCode.count(key)) {
|
||||
return (GetKeyState(inputToKeyCode[key]) & 0x8000) != 0;
|
||||
|
|
Reference in a new issue