UFO: Alien Invasion Issue Tracker
UFO: Alien Invasion
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png UFO: Alien Invasion / Open Bug report #2309 unexpected results pressing keyboard extended keys
Go to the next issue (open or closed)
Go to the next open issue
mattn (@tlh2000) has been working on this issue since January 28, 2013 (20:46)
Issue basics
  • Type of issue
    Bug report
  • Category
    General
  • Targetted for
    Not determined
  • Status
    Open
  • Priority
    3. Normal
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (1)
People involved
Times and dates
  • Posted at
  • Last updated
  • Estimated time
    Not estimated
Issue details
  • Resolution
    Not determined
  • Reproducability
    Not determined
  • Severity
    Not determined
  • Complexity
    Not determined
  • Platform
    Not determined
  • Architecture
    Not determined
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
[http://sourceforge.net/p/ufoai/bugs/2309 Item 2309] imported from sourceforge.net tracker on 2013-01-28 19:30:37

tested in r28202
On my keyboard I have the following extended buttons (on a Dell Laptop)
Mute, Volume up, Volume Down, Play/Pause, Rewind, Fast Forward, Stop
1. when I press Volume down, it causes my unit to crouch (equivalent of pressing 'c')
2. when I press rewind, it is the equivalent of the RMB - make unit change attitude towards cursor.

Item 1 is really annoying because when I try to turn the volume down, it consumed all the Unit TU with couch/stand commands.
I have no idea what keyboard ASCII code is being sent to the application when I press these keys, but there is definitely something wrong with the keyboard processing logic.

===== Comments Ported from Sourceforge =====

====== tlh2000 (2010-01-22 06:58:01) ======

try to activate the cvar in_debug and press that button - please publish the output here.
====== markhawrylak (2010-01-25 05:47:42) ======

I pressed
1. Enter to enable in debug 1
2. pressed Esc to close the console
3. pressed the offending key that causes the 'c' key to be pressed.
4. pressed the ` key to open the console
5 pressed up key to see last command
6. then changed the 1 to 0 and pressed enter.



2010/01/25 16:45:43 in_debug 1
2010/01/25 16:45:43 key name: return (down: 0)2010/01/25 16:45:43 2010/01/25 16:45:43 unicode: 0 keycode: 13 key: d
2010/01/25 16:45:43 Enqueue: ENTER (13) (down: 0)
2010/01/25 16:45:45 key name: escape (down: 1)2010/01/25 16:45:45 unicode: 1b2010/01/25 16:45:45 2010/01/25 16:45:45 unicode: 1b keycode: 27 key: 1b
2010/01/25 16:45:45 Enqueue: ESCAPE (27) (down: 1)
2010/01/25 16:45:45 key name: escape (down: 0)2010/01/25 16:45:45 2010/01/25 16:45:45 unicode: 0 keycode: 27 key: 1b
2010/01/25 16:45:45 Enqueue: ESCAPE (27) (down: 0)
2010/01/25 16:45:47 key name: q (down: 1)2010/01/25 16:45:47 2010/01/25 16:45:47 unicode: 0 keycode: 113 key: 71
2010/01/25 16:45:47 Enqueue: q (113) (down: 1)
2010/01/25 16:45:47 key name: q (down: 0)2010/01/25 16:45:47 2010/01/25 16:45:47 unicode: 0 keycode: 113 key: 71
2010/01/25 16:45:47 Enqueue: q (113) (down: 0)
2010/01/25 16:45:49 key name: ` (down: 1)2010/01/25 16:45:49 unicode: 602010/01/25 16:45:49 (`)2010/01/25 16:45:49 2010/01/25 16:45:49 unicode: 60 keycode: 96 key: 60
2010/01/25 16:45:49 Enqueue: ` (96) (down: 1)
2010/01/25 16:45:49 key name: ` (down: 0)2010/01/25 16:45:49 2010/01/25 16:45:49 unicode: 0 keycode: 96 key: 60
2010/01/25 16:45:49 Enqueue: ` (96) (down: 0)
2010/01/25 16:45:56 key name: up (down: 1)2010/01/25 16:45:56 2010/01/25 16:45:56 unicode: 0 keycode: 273 key: 111
2010/01/25 16:45:56 Enqueue: UPARROW (273) (down: 1)
2010/01/25 16:45:56 key name: up (down: 0)2010/01/25 16:45:56 2010/01/25 16:45:56 unicode: 0 keycode: 273 key: 111
2010/01/25 16:45:56 Enqueue: UPARROW (273) (down: 0)
2010/01/25 16:45:56 key name: backspace (down: 1)2010/01/25 16:45:56 unicode: 82010/01/25 16:45:56 2010/01/25 16:45:56 unicode: 8 keycode: 8 key: 8
2010/01/25 16:45:56 Enqueue: BACKSPACE (8) (down: 1)
2010/01/25 16:45:56 key name: backspace (down: 0)2010/01/25 16:45:56 2010/01/25 16:45:56 unicode: 0 keycode: 8 key: 8
2010/01/25 16:45:56 Enqueue: BACKSPACE (8) (down: 0)
2010/01/25 16:45:57 key name: 0 (down: 1)2010/01/25 16:45:57 unicode: 302010/01/25 16:45:57 (0)2010/01/25 16:45:57 2010/01/25 16:45:57 unicode: 30 keycode: 48 key: 30
2010/01/25 16:45:57 Enqueue: 0 (48) (down: 1)
2010/01/25 16:45:57 key name: 0 (down: 0)2010/01/25 16:45:57 2010/01/25 16:45:57 unicode: 0 keycode: 48 key: 30
2010/01/25 16:45:57 Enqueue: 0 (48) (down: 0)
2010/01/25 16:45:57 key name: return (down: 1)2010/01/25 16:45:57 unicode: d2010/01/25 16:45:57 2010/01/25 16:45:57 unicode: d keycode: 13 key: d
2010/01/25 16:45:57 Enqueue: ENTER (13) (down: 1)
2010/01/25 16:45:57 in_debug 0


for the turning problem when I press the rewind key
1. Enter to enable in debug 1
2. pressed Esc to close the console
3. pressed the offending key that causes the 'q' key to be pressed.
4. pressed the ` key to open the console
5 pressed up key to see last command
6. then changed the 1 to 0 and pressed enter.

2010/01/25 16:42:10 in_debug 1
2010/01/25 16:42:10 key name: return (down: 0)2010/01/25 16:42:10 2010/01/25 16:42:10 unicode: 0 keycode: 13 key: d
2010/01/25 16:42:10 Enqueue: ENTER (13) (down: 0)
2010/01/25 16:42:18 key name: escape (down: 1)2010/01/25 16:42:18 unicode: 1b2010/01/25 16:42:18 2010/01/25 16:42:18 unicode: 1b keycode: 27 key: 1b
2010/01/25 16:42:18 Enqueue: ESCAPE (27) (down: 1)
2010/01/25 16:42:18 key name: escape (down: 0)2010/01/25 16:42:18 2010/01/25 16:42:18 unicode: 0 keycode: 27 key: 1b
2010/01/25 16:42:18 Enqueue: ESCAPE (27) (down: 0)
2010/01/25 16:42:21 key name: c (down: 1)2010/01/25 16:42:21 2010/01/25 16:42:21 unicode: 0 keycode: 99 key: 63
2010/01/25 16:42:21 Enqueue: c (99) (down: 1)
2010/01/25 16:42:21 key name: c (down: 0)2010/01/25 16:42:21 2010/01/25 16:42:21 unicode: 0 keycode: 99 key: 63
2010/01/25 16:42:21 Enqueue: c (99) (down: 0)
2010/01/25 16:42:27 key name: ` (down: 1)2010/01/25 16:42:27 unicode: 602010/01/25 16:42:27 (`)2010/01/25 16:42:27 2010/01/25 16:42:27 unicode: 60 keycode: 96 key: 60
2010/01/25 16:42:27 Enqueue: ` (96) (down: 1)
2010/01/25 16:42:27 key name: ` (down: 0)2010/01/25 16:42:27 2010/01/25 16:42:27 unicode: 0 keycode: 96 key: 60
2010/01/25 16:42:27 Enqueue: ` (96) (down: 0)
2010/01/25 16:42:31 key name: up (down: 1)2010/01/25 16:42:31 2010/01/25 16:42:31 unicode: 0 keycode: 273 key: 111
2010/01/25 16:42:31 Enqueue: UPARROW (273) (down: 1)
2010/01/25 16:42:31 key name: up (down: 0)2010/01/25 16:42:31 2010/01/25 16:42:31 unicode: 0 keycode: 273 key: 111
2010/01/25 16:42:31 Enqueue: UPARROW (273) (down: 0)
2010/01/25 16:42:32 key name: backspace (down: 1)2010/01/25 16:42:32 unicode: 82010/01/25 16:42:32 2010/01/25 16:42:32 unicode: 8 keycode: 8 key: 8
2010/01/25 16:42:32 Enqueue: BACKSPACE (8) (down: 1)
2010/01/25 16:42:32 key name: backspace (down: 0)2010/01/25 16:42:32 2010/01/25 16:42:32 unicode: 0 keycode: 8 key: 8
2010/01/25 16:42:32 Enqueue: BACKSPACE (8) (down: 0)
2010/01/25 16:42:33 key name: 0 (down: 1)2010/01/25 16:42:33 unicode: 302010/01/25 16:42:33 (0)2010/01/25 16:42:33 2010/01/25 16:42:33 unicode: 30 keycode: 48 key: 30
2010/01/25 16:42:33 Enqueue: 0 (48) (down: 1)
2010/01/25 16:42:33 key name: 0 (down: 0)2010/01/25 16:42:33 2010/01/25 16:42:33 unicode: 0 keycode: 48 key: 30
2010/01/25 16:42:33 Enqueue: 0 (48) (down: 0)
2010/01/25 16:42:33 key name: return (down: 1)2010/01/25 16:42:33 unicode: d2010/01/25 16:42:33 2010/01/25 16:42:33 unicode: d keycode: 13 key: d
2010/01/25 16:42:33 Enqueue: ENTER (13) (down: 1)
2010/01/25 16:42:33 in_debug 0

====== aduke1 (2012-10-01 00:26:37.950000) ======

- **milestone**: 2.3 --> 2.3.x
Steps to reproduce this issue
Nothing entered.
Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif