| Summary: | SDL_PrivateJoystickButton on Android. Crash when pressing MENU button | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Sylvain <sylvain.becker> |
| Component: | *don't know* | Assignee: | Gabriel Jacobo <gabomdq> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | gabomdq, philipp.wiesemann |
| Version: | HG 2.1 | ||
| Hardware: | x86_64 | ||
| OS: | Android (All) | ||
| Attachments: | a basic patch | ||
|
Description
Sylvain
2013-11-07 21:34:12 UTC
Created attachment 1414 [details]
a basic patch
hello, With the application on the emulator, when pressing Menu, I got padId == -1 and SYS_numjoysticks == 0 (I dont use the Joystick subsystem, neither do the Init of it). I attached a basic patch, but I believe there should be a better solution. thanks, Sylvain Maybe fixed with: http://hg.libsdl.org/SDL/rev/8cff978e06e9 Sounds good, let's call it fixed. Thanks ! Yes, it's fixed. but a java import is missing : import java.util.List Sylvain Do you have local changes? It works here as is. I have minor local change but not about the import.
Maybe this is the version of java ?
-compile:
[javac] Compiling 4 source files to /home/slvn/build_android/proj_sdl_spider_armeabi/bin/classes
[javac] /home/slvn/build_android/proj_sdl_spider_armeabi/src/org/libsdl/app/SDLActivity.java:848: cannot find symbol
[javac] symbol : class List
[javac] location: class org.libsdl.app.SDLJoystickHandler_API12
[javac] private List<Integer> mJoyIdList;
[javac] ^
You have a merge problem. See here: http://hg.libsdl.org/SDL/file/8cff978e06e9/android-project/src/org/libsdl/app/SDLActivity.java#l847 yes ! you are right ! I have missed this line ! thanks ! Sylvain |