Update GUI::Key constructs

svn-id: r27643
This commit is contained in:
Max Horn 2007-06-23 00:05:32 +00:00
parent 05a70fc8e4
commit f97cbb8294
9 changed files with 85 additions and 82 deletions

View file

@ -32,10 +32,30 @@ Key::Key() :
_ascii(0), _keycode(0), _flags(0) {
}
Key::Key(int ascii) :
_ascii(ascii), _keycode(ascii), _flags(0) {
}
Key::Key(int ascii, int keycode, int flags) :
_ascii(ascii), _keycode(keycode), _flags(flags) {
}
void Key::setKey(int ascii) {
_ascii = ascii;
_keycode = ascii;
}
void Key::setKey(int ascii, int keycode) {
_ascii = ascii;
_keycode = keycode;
}
void Key::setKey(int ascii, int keycode, int flags) {
_ascii = ascii;
_keycode = keycode;
_flags = flags;
}
int Key::ascii() {
return _ascii;
}
@ -48,18 +68,4 @@ int Key::flags() {
return _flags;
}
void Key::setAscii(int ascii) {
_ascii = ascii;
_keycode = ascii; // default
}
void Key::setKeycode(int keycode) {
_keycode = keycode;
}
void Key::setFlags(int flags) {
_flags = flags;
}
} // namespace GUI