J :
* The key bindings now display (semi-)correctly.
- Here, "semi-" means the local keys display as a string under X and
a number everywhere else. The number is all but helpful and will
have to be replaced before it is usable, but at the moment, the
code is stable afaik.
This commit is contained in:
18
projects/mtg/include/TranslateKeys.h
Normal file
18
projects/mtg/include/TranslateKeys.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef _TRANSLATEKEYS_H_
|
||||
#define _TRANSLATEKEYS_H_
|
||||
|
||||
#include <string>
|
||||
#include "JGE.h"
|
||||
|
||||
struct KeyRep
|
||||
{
|
||||
KeyRep(JQuad*, std::string);
|
||||
JQuad* icon;
|
||||
std::string text;
|
||||
};
|
||||
|
||||
|
||||
const KeyRep& translateKey(LocalKeySym);
|
||||
const KeyRep& translateKey(JButton);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user