28 |
|
|
29 |
#include "pgmessageobject.h" |
#include "pgmessageobject.h" |
30 |
#include "pgwidget.h" |
#include "pgwidget.h" |
|
#include "pgmsgmap.h" |
|
31 |
#include "pglog.h" |
#include "pglog.h" |
32 |
|
|
33 |
#include <iostream> |
#include <iostream> |
59 |
|
|
60 |
RemoveObject(this); |
RemoveObject(this); |
61 |
|
|
62 |
PG_UnregisterEventObject(this); |
//PG_UnregisterEventObject(this); |
63 |
|
|
64 |
if (inputFocusObject == this) { |
if (inputFocusObject == this) { |
65 |
inputFocusObject = NULL; |
inputFocusObject = NULL; |
413 |
} |
} |
414 |
|
|
415 |
/** */ |
/** */ |
416 |
bool PG_MessageObject::SendMessage(PG_MessageObject* target, PG_MSG_TYPE type, MSG_ID id, MSG_DATA data) { |
/*bool PG_MessageObject::SendMessage(PG_MessageObject* target, PG_MSG_TYPE type, MSG_ID id, MSG_DATA data) { |
417 |
bool rc = false; |
bool rc = false; |
418 |
|
|
419 |
// check if there is a callback function |
// check if there is a callback function |
450 |
} |
} |
451 |
|
|
452 |
return rc; |
return rc; |
453 |
} |
}*/ |
|
|
|
454 |
|
|
455 |
|
/* |
456 |
void PG_MessageObject::SetEventCallback(PG_MSG_TYPE type, MSG_CALLBACK cbfunc, void *clientdata) { |
void PG_MessageObject::SetEventCallback(PG_MSG_TYPE type, MSG_CALLBACK cbfunc, void *clientdata) { |
457 |
PG_RegisterEventHandler(type, this, cbfunc, clientdata); |
PG_RegisterEventHandler(type, this, cbfunc, clientdata); |
458 |
} |
} |
459 |
|
|
460 |
void PG_MessageObject::SetEventObject(PG_MSG_TYPE type, PG_EventObject* calledobj, MSG_CALLBACK_OBJ cbfunc, void *clientdata) { |
void PG_MessageObject::SetEventObject(PG_MSG_TYPE type, PG_EventObject* calledobj, MSG_CALLBACK_OBJ cbfunc, void *clientdata) { |
461 |
PG_RegisterEventHandlerObj(type, this, calledobj, cbfunc, clientdata); |
PG_RegisterEventHandlerObj(type, this, calledobj, cbfunc, clientdata); |
462 |
} |
}*/ |
463 |
|
|
464 |
void PG_MessageObject::TranslateNumpadKeys(SDL_KeyboardEvent *key) { |
void PG_MessageObject::TranslateNumpadKeys(SDL_KeyboardEvent *key) { |
465 |
// note: works on WIN, test this on other platforms |
// note: works on WIN, test this on other platforms |