-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug & exporter, Added SlideBar (not finished)
- Loading branch information
1 parent
194bd36
commit dbd9c9f
Showing
11 changed files
with
210 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,40 @@ | ||
#include "event_handler.hpp" | ||
#include "config_mgr.h" | ||
|
||
extern linked_list currentWidgets; | ||
extern linked_list currentWidgets; | ||
|
||
QMEventHandler::QMEventHandler() | ||
{ | ||
eventHandler = onGet; | ||
} | ||
QMEventHandler::QMEventHandler() | ||
{ | ||
eventHandler = onGet; | ||
} | ||
|
||
void QMEventHandler::onGet(SceInt32 , Widget *self, SceInt32, ScePVoid puserData) | ||
void QMEventHandler::onGet(SceInt32 , Widget *self, SceInt32, ScePVoid puserData) | ||
{ | ||
widgetData *widget = (widgetData *)puserData; | ||
switch (widget->type) | ||
{ | ||
widgetData *widget = (widgetData *)puserData; | ||
switch (widget->type) | ||
case button: | ||
{ | ||
case button: | ||
{ | ||
if(widget->data.ButtonData.onPress != NULL) widget->data.ButtonData.onPress(); | ||
break; | ||
} | ||
if(widget->data.ButtonData.onPress != NULL) widget->data.ButtonData.onPress(); | ||
break; | ||
} | ||
|
||
case check_box: | ||
{ | ||
print("Setting checkbox state to %d\n", ((CheckBox *)self)->checked); | ||
currentWidgets.update_checkbox_status(widget->refId, ((CheckBox *)self)->checked ? CHECKBOX_ON : CHECKBOX_OFF); | ||
print("Got save ret = 0x%X\n", saveCheckBoxState(widget->refId, ((CheckBox *)self)->checked ? CHECKBOX_ON : CHECKBOX_OFF)); | ||
if(widget->data.CheckBoxData.OnToggle != NULL) widget->data.CheckBoxData.OnToggle(((CheckBox *)self)->checked); | ||
break; | ||
} | ||
case check_box: | ||
{ | ||
currentWidgets.update_checkbox_status(widget->refId, ((CheckBox *)self)->checked ? CHECKBOX_ON : CHECKBOX_OFF); | ||
if(widget->data.CheckBoxData.OnToggle != NULL) widget->data.CheckBoxData.OnToggle(((CheckBox *)self)->checked); | ||
break; | ||
} | ||
|
||
default: | ||
{ | ||
break; | ||
} | ||
case slidebar: | ||
{ | ||
if(widget->data.SlidebarData.OnChange != NULL) widget->data.SlidebarData.OnChange(); | ||
break; | ||
} | ||
|
||
default: | ||
{ | ||
break; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.