Update render, spritebatch and input stuffs.
This commit is contained in:
@@ -36,6 +36,26 @@ inputbuttondata_t INPUT_BUTTON_DATA[] = {
|
||||
{ .name = NULL }
|
||||
};
|
||||
|
||||
errorret_t inputInitPSP(void) {
|
||||
#define X(buttonName, buttonAction) \
|
||||
inputBind(inputButtonGetByName(buttonName), buttonAction);
|
||||
X("up", INPUT_ACTION_UP);
|
||||
X("down", INPUT_ACTION_DOWN);
|
||||
X("left", INPUT_ACTION_LEFT);
|
||||
X("right", INPUT_ACTION_RIGHT);
|
||||
X("accept", INPUT_ACTION_ACCEPT);
|
||||
X("cancel", INPUT_ACTION_CANCEL);
|
||||
X("triangle", INPUT_ACTION_CONSOLE);
|
||||
X("select", INPUT_ACTION_RAGEQUIT);
|
||||
X("lstick_up", INPUT_ACTION_UP);
|
||||
X("lstick_down", INPUT_ACTION_DOWN);
|
||||
X("lstick_left", INPUT_ACTION_LEFT);
|
||||
X("lstick_right", INPUT_ACTION_RIGHT);
|
||||
#undef X
|
||||
|
||||
errorOk();
|
||||
}
|
||||
|
||||
float_t inputGetDeadzoneSDL2(const inputbutton_t button) {
|
||||
return 0.2f;
|
||||
}
|
||||
Reference in New Issue
Block a user