Skip to content

Commit

Permalink
Ignore unneeded sdl events
Browse files Browse the repository at this point in the history
  • Loading branch information
isage committed Oct 4, 2021
1 parent d3976de commit ac0aa00
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ add_definitions("-Dmemcmp=sceClibMemcmp")
add_definitions("-Dstrcmp=sceClibStrcmp")
add_definitions("-Dstrncmp=sceClibStrncmp")
add_definitions("-Dstrncpy=sceClibStrncpy")
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Ofast")
#add_definitions("-ffast-math -ftree-vectorize -mfpu=neon")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Ofast")
add_definitions("-ffast-math -ftree-vectorize -mfpu=neon")

# Require tre
add_subdirectory(3rdparty/tre)
Expand Down
2 changes: 2 additions & 0 deletions core/bgdi/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ int main( int argc, char *argv[] )
#ifdef TARGET_VITA
scePowerSetArmClockFrequency(444);
scePowerSetGpuClockFrequency(222);
SDL_setenv("VITA_DISABLE_TOUCH_FRONT", "1");
SDL_setenv("VITA_DISABLE_TOUCH_BACK", "1");
#endif

char * filename = NULL, dcbname[ __MAX_PATH ], *ptr ;
Expand Down
1 change: 1 addition & 0 deletions modules/libkey/libkey.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ void hotkey_add( int mod, int sym, HOTKEY_CALLBACK callback )

static void process_key_events()
{
return;
SDL_Event e ;
SDL_Keymod m ;
int k, asc ;
Expand Down
1 change: 1 addition & 0 deletions modules/libmouse/libmouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ DLVARFIXUP __bgdexport( libmouse, globals_fixup )[] =

static void do_mouse_events()
{
return;
SDL_Event e ;
static int last_mouse_x = -1, last_mouse_y = -1 ;

Expand Down
1 change: 1 addition & 0 deletions modules/libwm/libwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ DLVARFIXUP __bgdexport( libwm, globals_fixup )[] =

static void wm_events()
{
return;
SDL_Event e ;

/* Procesa los eventos de ventana pendientes */
Expand Down
1 change: 1 addition & 0 deletions modules/mod_multi/mod_multi.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ int get_sdlfinger_index(SDL_FingerID finger) {

/* Process SDL events looking for multitouch-related ones */
void parse_input_events() {
return;
int n=0;
float x=0.0, y=0.0;
double width=0, height=0;
Expand Down

0 comments on commit ac0aa00

Please sign in to comment.