* 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.
19 lines
262 B
C++
19 lines
262 B
C++
#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
|