summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-19 23:15:31 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-19 23:15:31 +0000
commitbbccc4cd6aa38a5c8fd62129ceb1de24b9709149 (patch)
tree2be98c3301cf2eec0c0997a4facbae074fb42b7b /crawl-ref/source
parent44099829379372be44a0d5afad5ec5fdf4200b10 (diff)
downloadcrawl-ref-bbccc4cd6aa38a5c8fd62129ceb1de24b9709149.tar.gz
crawl-ref-bbccc4cd6aa38a5c8fd62129ceb1de24b9709149.zip
Apply patch 2789368 to make AltGr work as expected for Tiles.
This has always worked for me on Linux and I've got no way to test it on Windows, so I'll just have to hope it's okay. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10341 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source')
-rw-r--r--crawl-ref/source/tilesdl.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/tilesdl.cc b/crawl-ref/source/tilesdl.cc
index 1f886ebe53..11bdc6b964 100644
--- a/crawl-ref/source/tilesdl.cc
+++ b/crawl-ref/source/tilesdl.cc
@@ -485,21 +485,21 @@ static int _translate_keysym(SDL_keysym &keysym)
// handled.
const int shift_offset = CK_SHIFT_UP - CK_UP;
- const int ctrl_offset = CK_CTRL_UP - CK_UP;
+ const int ctrl_offset = CK_CTRL_UP - CK_UP;
int mod = 0;
if (keysym.mod & KMOD_SHIFT)
mod |= MOD_SHIFT;
if (keysym.mod & KMOD_CTRL)
mod |= MOD_CTRL;
- if (keysym.mod & KMOD_ALT)
+ if (keysym.mod & KMOD_LALT)
mod |= MOD_ALT;
// This is arbitrary, but here's the current mappings.
// 0-256: ASCII, Crawl arrow keys
// 0-1k : Other SDL keys (F1, Windows keys, etc...) and modifiers
// 1k-3k: Non-ASCII with modifiers other than just shift or just ctrl.
- // 3k+ : ASCII with the alt modifier.
+ // 3k+ : ASCII with the left alt modifier.
int offset = mod ? 1000 + 256 * mod : 0;
int numpad_offset = 0;