-
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
60 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 10 additions & 13 deletions
23
src/pandroid/app/src/main/java/com/panda3ds/pandroid/utils/Constants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,23 @@ | ||
package com.panda3ds.pandroid.utils; | ||
|
||
public class Constants { | ||
public static final int INPUT_KEY_A = 1 << 0; | ||
public static final int INPUT_KEY_B = 1 << 1; | ||
public static final int INPUT_KEY_SELECT = 1 << 2; | ||
public static final int INPUT_KEY_START = 1 << 3; | ||
public static final int INPUT_KEY_RIGHT = 1 << 4; | ||
public static final int INPUT_KEY_LEFT = 1 << 5; | ||
public static final int INPUT_KEY_UP = 1 << 6; | ||
public static final int INPUT_KEY_DOWN = 1 << 7; | ||
public static final int INPUT_KEY_LEFT = 1 << 5; | ||
public static final int INPUT_KEY_RIGHT = 1 << 4; | ||
|
||
public static final int INPUT_KEY_A = 1; | ||
public static final int INPUT_KEY_B = 1 << 1; | ||
public static final int INPUT_KEY_X = 1 << 10; | ||
public static final int INPUT_KEY_Y = 1 << 11; | ||
|
||
public static final int INPUT_KEY_R = 1 << 8; | ||
public static final int INPUT_KEY_L = 1 << 9; | ||
|
||
public static final int INPUT_KEY_START = 1 << 3; | ||
public static final int INPUT_KEY_SELECT = 1 << 2; | ||
public static final int INPUT_KEY_X = 1 << 10; | ||
public static final int INPUT_KEY_Y = 1 << 11; | ||
|
||
public static final int N3DS_WIDTH = 400; | ||
public static final int N3DS_HALF_HEIGHT = 240; | ||
public static final int N3DS_FULL_HEIGHT = 480; | ||
public static final int N3DS_FULL_HEIGHT = N3DS_HALF_HEIGHT * 2; | ||
|
||
public static final String EXTRA_PATH = "path"; | ||
public static final String ACTIVITY_PARAMETER_PATH = "path"; | ||
public static final String LOG_TAG = "pandroid"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 3 additions & 7 deletions
10
src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/TouchEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/TouchType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.panda3ds.pandroid.view.controller; | ||
|
||
public enum TouchType { | ||
ACTION_DOWN, | ||
ACTION_MOVE, | ||
ACTION_UP | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters