-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
Pandroid #340
Pandroid #340
Conversation
lgtm |
src/pandroid/app/src/main/java/com/panda3ds/pandroid/PandaGlRenderer.java
Outdated
Show resolved
Hide resolved
src/pandroid/app/src/main/java/com/panda3ds/pandroid/PandaGlRenderer.java
Outdated
Show resolved
Hide resolved
src/pandroid/app/src/main/java/com/panda3ds/pandroid/PandaGlRenderer.java
Outdated
Show resolved
Hide resolved
src/pandroid/app/src/main/java/com/panda3ds/pandroid/PandaGlRenderer.java
Outdated
Show resolved
Hide resolved
How I can build version for other ABIs (ARMv8)? |
src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/MainActivity.java
Outdated
Show resolved
Hide resolved
src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/nodes/Joystick.java
Outdated
Show resolved
Hide resolved
src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/PandaGlRenderer.java
Show resolved
Hide resolved
src/pandroid/app/src/main/java/com/panda3ds/pandroid/utils/PathUtils.java
Outdated
Show resolved
Hide resolved
src/pandroid/app/src/main/java/com/panda3ds/pandroid/utils/PathUtils.java
Show resolved
Hide resolved
src/pandroid/app/src/main/java/com/panda3ds/pandroid/utils/PathUtils.java
Show resolved
Hide resolved
Github duplicated some review comments |
src/pandroid/app/src/main/java/com/panda3ds/pandroid/math/Vector2.java
Outdated
Show resolved
Hide resolved
src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/ControllerNode.java
Outdated
Show resolved
Hide resolved
src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/ControllerNode.java
Outdated
Show resolved
Hide resolved
src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/nodes/Joystick.java
Outdated
Show resolved
Hide resolved
|
||
@Override | ||
public void onDrawForeground(Canvas canvas) { | ||
size_width = getWidth(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
size_width = getWidth(); | |
sizeWidth = getWidth(); |
@Override | ||
public void onDrawForeground(Canvas canvas) { | ||
size_width = getWidth(); | ||
size_height = getHeight(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
size_height = getHeight(); | |
sizeHeight = getHeight(); |
|
||
if (hasDownEvent && event.getAction() == TouchEvent.ACTION_UP) { | ||
AlberDriver.TouchScreenUp(); | ||
me.setTag(R.id.TagEventHasDown, false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
me.setTag(R.id.TagEventHasDown, false); | |
view.setTag(R.id.TagEventHasDown, false); |
public static final int N3DS_FULL_HEIGHT = 480; | ||
|
||
public static final String EXTRA_PATH = "path"; | ||
public static final String LOG_TAG = "Alber"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public static final String LOG_TAG = "Alber"; | |
public static final String LOG_TAG = "Pandroid"; |
|
||
public class PandaGlSurfaceView extends GLSurfaceView implements TouchScreenNodeImpl { | ||
final PandaGlRenderer renderer; | ||
private int size_width; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private int size_width; | |
private int sizeWidth = 0; |
@NonNull | ||
@Override | ||
public Vector2 getSize() { | ||
return new Vector2(size_width, size_height); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return new Vector2(size_width, size_height); | |
return new Vector2(sizeWidth, sizeHeight); |
87326a5
to
63a09dd
Compare
(Please avoid deleting hydra-emu:pandroid4 for a while) |
Pull request for Android support.
Current steps to build the apk are a bit involved, but will be made easier in the future:
from root project directory:
The idea is that AlberDriver.java will load the correct libAlber based on your arch, and the various activities that need to interact with the emulator will use AlberDriver functions that are defined in jni_driver.cpp
Ongoing PR, not ready for merge yet