mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
Fix windows workflow (#322)
This commit is contained in:
parent
731c00d504
commit
5fbc05d21d
3 changed files with 2 additions and 9 deletions
|
|
@ -111,13 +111,6 @@ mousecode input_util::mousecode_from(const std::string& name) {
|
|||
|
||||
std::string input_util::to_string(keycode code) {
|
||||
int icode_repr = static_cast<int>(code);
|
||||
#ifdef _WIN32
|
||||
char name[64];
|
||||
int result =
|
||||
GetKeyNameTextA(glfwGetKeyScancode(icode_repr) << 16, name, 64);
|
||||
if (result == 0) return "Unknown";
|
||||
return name;
|
||||
#else
|
||||
const char* name =
|
||||
glfwGetKeyName(icode_repr, glfwGetKeyScancode(icode_repr));
|
||||
if (name == nullptr) {
|
||||
|
|
@ -207,7 +200,6 @@ std::string input_util::to_string(keycode code) {
|
|||
}
|
||||
}
|
||||
return std::string(name);
|
||||
#endif // _WIN32
|
||||
}
|
||||
|
||||
std::string input_util::to_string(mousecode code) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue