Mod Archive Forums Mod Archive Forums
Advanced search  

News:

Please note: Your main modarchive.org account will not work here, you must create a forum account to post on the forums.

Pages: [1]   Go Down

Author Topic: numpad input not functional on 'orders'  (Read 8612 times)

0 Members and 1 Guest are viewing this topic.

dracflamloc

  • New User
  • Offline Offline
  • Posts: 5
    • View Profile
numpad input not functional on 'orders'
« on: March 17, 2008, 20:45:02 »

must use top row of keyboard numbers to input 'orders'. numpad does work in all other places i've tried.
Logged

TiM

  • New User
  • Offline Offline
  • Posts: 2
    • View Profile
Re: numpad input not functional on 'orders'
« Reply #1 on: March 22, 2008, 15:34:57 »

Really good tracker but same problem for me  :(
Logged

TiM

  • New User
  • Offline Offline
  • Posts: 2
    • View Profile
Re: numpad input not functional on 'orders'
« Reply #2 on: March 22, 2008, 16:45:53 »

hello again.

i love this tracker so i modify the code and it's work...

it's dirty, but easy to explain in this forum.

so just modify the interface/order_list_editor.cpp near line 221
change :
Code: [Select]
bool OrderListEditor::key(unsigned long p_unicode, unsigned long p_scan_code,bool p_press,bool p_repeat,int p_modifier_mask) {


if (!p_press)
return true;
KeyBindList kbind=KeyBind::get_bind( p_scan_code );

if (kbind==KB_MAX)
return false;

bool capture=false;
with :
Code: [Select]
bool OrderListEditor::key(unsigned long p_unicode, unsigned long p_scan_code,bool p_press,bool p_repeat,int p_modifier_mask) {

if (!p_press)
return true;
KeyBindList kbind=KeyBind::get_bind( p_scan_code );

bool capture=false;

if (p_unicode >= '0' and p_unicode <= '9') {
editor->orderlist_insert_value(p_unicode-'0');
update();
return capture;
}

if (kbind==KB_MAX)
return false;

now, just re-compile it and play !

i'm too lazy to do nice a patch for the moment.

but i hope it will save some users... enjoy !
« Last Edit: March 22, 2008, 16:47:31 by TiM »
Logged

dracflamloc

  • New User
  • Offline Offline
  • Posts: 5
    • View Profile
Re: numpad input not functional on 'orders'
« Reply #3 on: April 03, 2008, 04:16:20 »

Thanks =)
Logged
Pages: [1]   Go Up