Attached Files |
DELETE-key-fix.patch [^] (1,133 bytes) 2013-03-03 21:04 [Show Content] [Hide Content]From 1e4a2f9dc300b16c42e0a85f8cd8f3beb8cbbc47 Mon Sep 17 00:00:00 2001
From: shmup <swsilent@gmail.com>
Date: Sun, 3 Mar 2013 23:35:10 +0400
Subject: [PATCH] <DELETE> does nothing, but should do CMD_WAIT or
CMD_MOVE_NOWHERE. Fixed, tried in linux console.
---
crawl-ref/source/cmd-keys.h | 1 +
crawl-ref/source/macro.cc | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/crawl-ref/source/cmd-keys.h b/crawl-ref/source/cmd-keys.h
index d481899..570f53a 100644
--- a/crawl-ref/source/cmd-keys.h
+++ b/crawl-ref/source/cmd-keys.h
@@ -10,6 +10,7 @@
// movement keys
{CK_CLEAR, CMD_MOVE_NOWHERE},
{'.', CMD_MOVE_NOWHERE},
+{CK_DELETE, CMD_MOVE_NOWHERE},
{CK_END, CMD_MOVE_DOWN_LEFT},
{CK_LEFT, CMD_MOVE_LEFT},
{CK_DOWN, CMD_MOVE_DOWN},
diff --git a/crawl-ref/source/macro.cc b/crawl-ref/source/macro.cc
index a224f85..0c9521b 100644
--- a/crawl-ref/source/macro.cc
+++ b/crawl-ref/source/macro.cc
@@ -714,7 +714,7 @@ static keyseq _getch_mul(int (*rgetch)() = NULL)
}
if (!rgetch)
- rgetch = m_getch;
+ rgetch = getch_ck;
keys.push_back(a = rgetch());
--
1.7.10.4
DELETE-Key-fix-SDL.patch [^] (840 bytes) 2013-03-04 19:30 [Show Content] [Hide Content]From 77621d64d795ebb70ec7336cb4d0b6a6b779eb34 Mon Sep 17 00:00:00 2001
From: shmup <swsilent@gmail.com>
Date: Mon, 4 Mar 2013 22:23:10 +0400
Subject: [PATCH] Fixed numpad <Delete> in SDL version
---
crawl-ref/source/windowmanager-sdl.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/crawl-ref/source/windowmanager-sdl.cc b/crawl-ref/source/windowmanager-sdl.cc
index 3811a66..2e43e84 100644
--- a/crawl-ref/source/windowmanager-sdl.cc
+++ b/crawl-ref/source/windowmanager-sdl.cc
@@ -193,6 +193,8 @@ static int _translate_keysym(SDL_keysym &keysym)
return (CK_END + numpad_offset);
case SDLK_CLEAR:
return (CK_CLEAR + numpad_offset);
+ case SDLK_KP_PERIOD:
+ return (CK_DELETE + numpad_offset);
case SDLK_KP9:
case SDLK_PAGEUP:
return (CK_PGUP + numpad_offset);
--
1.7.10.4
|