-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Android support #575
base: master
Are you sure you want to change the base?
Add Android support #575
Conversation
@jlnr Do you know why the app crashes when Call tree: Gosu::Image("gosu.png"); Lines 55 to 62 in 0a58b39
Lines 52 to 59 in 0a58b39
Lines 72 to 80 in 0a58b39
|
@cyberarm You are passing |
Pointer, reference, value... 🤦🏽♂️ Thanks, @jlnr, it compiles now. 😀 |
@jlnr How do we want to implement Gosu's touch callbacks? SDL doesn't provide a Do we want to keep the struct based callback? struct Touch {
int id; // device_id + finger_id?
int device_index, finger_index;
double x, y;
};
void touch_began(Touch touch);
void touch_moved(Touch touch);
void touch_ended(Touch touch); or use a more verbose callback? void touch_start(int device_index, int finger_index, double x, double y);
void touch_move(int device_index, int finger_index, double x, double y);
void touch_end(int device_index, int finger_index, double x, double y); |
Hmm, good question(s). Some thoughts after a busy couple of weeks:
|
…ly compiles and links now.
…droid for loading files from Android assets folder
@jlnr what is the best way for |
@jlnr It is actually supposed to work the other way around: Window should set the mouse factors of its Input object to scale correctly. Technically touches are not a mouse, but can we reuse the same mechanism? (Sorry, still no time to dig into the code a lot...) |
…(no library needed for gosu to link against)
Draft PR for tracking changes needed to compile for Android
See: https://github.com/cyberarm/gosu-android for Android project
Current goal is to get a very basic gosu app running