Chaosforge Forum

  • April 24, 2024, 01:10
  • Welcome, Guest
Please login or register.



Login with username, password and session length
Pages: [1]

Author Topic: Numpad control with numlock on  (Read 3317 times)

Burrito Al Pastor

  • Elder
  • Private
  • *
  • *
  • Offline Offline
  • Posts: 4
  • Lost Soul
    • View Profile
Numpad control with numlock on
« on: April 08, 2011, 18:46 »

I use Windows, I play using the numpad, and I'd really like it if I didn't have to turn off numlock to use the numpad to move.

It's not that it's an enormous hassle to turn off numpad when I start playing DoomRL - the issue is remembering to turn it back on afterwards. (Especially an issue when I'm, say, multitasking DoomRL with Access homework, where I'm using the numpad to enter numeric values in a spreadsheet...)

That's all there is to it! Is this plausible? Am I the only person who cares about it?
Logged

rchandra

  • Elder
  • Major
  • *
  • *
  • Offline Offline
  • Posts: 359
    • View Profile
Re: Numpad control with numlock on
« Reply #1 on: April 08, 2011, 19:14 »

I would guess that the easiest thing to do is rebind the movement keys to the numbers in keybindings.lua.  You'll also need to change the weapon quickkeys, since they use the numbers by default.  Perhaps change them to the function keys.
Logged
0.9.9.1-4: Arch-Vile Br. General [25/25/17/5/1]
0.9.9.5-7: Hell Baron Major [ 21 16 12 4 1 0 ]

Burrito Al Pastor

  • Elder
  • Private
  • *
  • *
  • Offline Offline
  • Posts: 4
  • Lost Soul
    • View Profile
Re: Numpad control with numlock on
« Reply #2 on: April 08, 2011, 21:17 »

...Wouldn't that also make the number keys above my QUERTY keyboard also function as movement keys? A glance at the keybindings.lua suggests to me that DoomRL is just reading the numpad as arrow keys and insert/delete/home/whatever, as opposed to recognizing the numpad number keys as being discrete keys. Which seems odd.
Logged

grommile

  • Elder
  • First Lieutenant
  • *
  • *
  • Offline Offline
  • Posts: 205
  • mmm beer
    • View Profile
Re: Numpad control with numlock on
« Reply #3 on: April 09, 2011, 02:17 »

It may be an artefact of whatever underlying library is being used to read the keyboard.
Logged
0.9.9.7: 22-15-10-0-0 22/43 62/67 (P 349, D 43/67) 36/40 (B19 A12 M5) Arch-Vile CPT

Armorer Platinum and Diamond should be abolished; the Dragonslayer taboo deserves every scrap of mockery it receives.

yaflhdztioxo

  • Programmer
  • Elder Chaos Guard
  • Captain
  • *
  • *
  • Offline Offline
  • Posts: 298
  • Lost Sole
    • View Profile
Re: Numpad control with numlock on
« Reply #4 on: April 09, 2011, 12:35 »

I approve of this product and/or service.
Logged

Deathwind

  • Colonel
  • *
  • Offline Offline
  • Posts: 505
  • HMP Angel of Patience 0.9.9.4
    • View Profile
Re: Numpad control with numlock on
« Reply #5 on: April 09, 2011, 17:37 »

The current form does not see what key you press, it sees the end result after it's been processed by the system.
Logged
v.997 [16/5/2/0/0]
Pages: [1]