diff options
author | Max Horn | 2005-09-03 19:59:33 +0000 |
---|---|---|
committer | Max Horn | 2005-09-03 19:59:33 +0000 |
commit | 3f2286031a2e67e28a2085ee79013a78728ef40a (patch) | |
tree | a852e60dcf4b20c30ec0671b9ab9d6069ecc1302 /sword1 | |
parent | 587053118445a1ca3abf849070ab22a25ca2e467 (diff) | |
download | scummvm-rg350-3f2286031a2e67e28a2085ee79013a78728ef40a.tar.gz scummvm-rg350-3f2286031a2e67e28a2085ee79013a78728ef40a.tar.bz2 scummvm-rg350-3f2286031a2e67e28a2085ee79013a78728ef40a.zip |
Avoid putting non-ASCII chars into source files
svn-id: r18761
Diffstat (limited to 'sword1')
-rw-r--r-- | sword1/control.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sword1/control.cpp b/sword1/control.cpp index 3793e6f022..a519108370 100644 --- a/sword1/control.cpp +++ b/sword1/control.cpp @@ -654,6 +654,12 @@ bool Control::getConfirm(const uint8 *title) { bool Control::keyAccepted(uint8 key) { // this routine needs changes for Czech keys... No idea how to do that, though. + // FIXME: It is not a good idea to put non-ASCII chars into a C source file, + // since there is no way to specify which encoding you are using. + // It is better to encode them as hex/octal. Although in this particular + // case, it seems questionable to do this at all, since we currently + // do not at all specify which encoding keyboard events use, so this + // check here is probably not portable anyway... static const char allowedSpecials[] = "éèáàúùäöüÄÖÜß,.:-()?! \"\'"; if (((key >= 'A') && (key <= 'Z')) || ((key >= 'a') && (key <= 'z')) || |