10.12.2010 - light modifies in headers
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include "piconsole.h"
|
||||
|
||||
|
||||
PIConsole::PIConsole(bool startNow, KeyFunc slot): PIThread() {
|
||||
PIConsole::PIConsole(bool startNow, KBFunc slot): PIThread() {
|
||||
setPriority(piLow);
|
||||
needLockRun(true);
|
||||
ret_func = slot;
|
||||
@@ -110,7 +110,7 @@ bool PIConsole::setTabBindKey(PIString name, char bind_key) {
|
||||
}
|
||||
|
||||
|
||||
void PIConsole::key_event(void * t, char key) {
|
||||
void PIConsole::key_event(char key, void * t) {
|
||||
PIConsole * p = (PIConsole * )t;
|
||||
for (uint i = 0; i < p->tabsCount(); ++i) {
|
||||
if (p->tabs[i].key == key) {
|
||||
@@ -118,7 +118,7 @@ void PIConsole::key_event(void * t, char key) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (p->ret_func != 0) p->ret_func(t, key);
|
||||
if (p->ret_func != 0) p->ret_func(key, t);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user