enum
{
+ KEY_NONE = 0x00,
+
// Codes 0x01-0x7E reserved for ASCII
KEY_BACKSPACE = 0x08,
KEY_TAB = 0x09,
#include <windows.h>
#include <msp/graphics/window_private.h>
#include "keyboard.h"
+#include "keys.h"
#include "keys_private.h"
#define MAPVK_VK_TO_VSC 0
std::string Keyboard::get_button_name(unsigned btn) const
{
- if(btn==0)
+ if(btn==KEY_NONE)
return "None";
char buf[128];
#include <X11/Xutil.h>
#include <msp/graphics/window_private.h>
#include "keyboard.h"
+#include "keys.h"
#include "keys_private.h"
namespace Msp {
std::string Keyboard::get_button_name(unsigned btn) const
{
- if(btn==0)
+ if(btn==KEY_NONE)
return "None";
const char *str = XKeysymToString(key_to_sys(btn));