Mod Archive Forums

Music Production => ChibiTracker => Tracking => ChibiTracker Bug Reports => Topic started by: dracflamloc on March 17, 2008, 20:45:02

Title: numpad input not functional on 'orders'
Post by: dracflamloc 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.
Title: Re: numpad input not functional on 'orders'
Post by: TiM on March 22, 2008, 15:34:57
Really good tracker but same problem for me  :(
Title: Re: numpad input not functional on 'orders'
Post by: TiM 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 !
Title: Re: numpad input not functional on 'orders'
Post by: dracflamloc on April 03, 2008, 04:16:20
Thanks =)