mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-15 10:40:01 +01:00
Colored touchbuttons, portafixes
This commit is contained in:
1 parent
5a5f599e1b
commit
1ea568990d
7 files changed
+49
-26
No files matched your search
@@ -203,9 +203,12 @@ extern "C" void Java_com_turboviking_libnative_NativeRenderer_displayResize(JNIE
|
||||
extern "C" void Java_com_turboviking_libnative_NativeRenderer_displayRender(JNIEnv *env, jobject obj) {
|
||||
if (renderer_inited) {
|
||||
UpdateInputState(&input_state);
|
||||
NativeUpdate(input_state);
|
||||
{
|
||||
lock_guard guard(input_state.lock);
|
||||
NativeUpdate(input_state);
|
||||
EndInputState(&input_state);
|
||||
}
|
||||
NativeRender();
|
||||
EndInputState(&input_state);
|
||||
time_update();
|
||||
} else {
|
||||
ELOG("Ended up in nativeRender even though app has quit.%s", "");
|
||||
@@ -266,6 +269,7 @@ extern "C" void JNICALL Java_com_turboviking_libnative_NativeApp_touch
|
||||
extern "C" void Java_com_turboviking_libnative_NativeApp_keyDown
|
||||
(JNIEnv *, jclass, jint key) {
|
||||
ILOG("Keydown %i", key);
|
||||
lock_guard guard(input_state.lock);
|
||||
// Need a mechanism to release these.
|
||||
switch (key) {
|
||||
case 1: // Back
|
||||
@@ -282,7 +286,8 @@ extern "C" void Java_com_turboviking_libnative_NativeApp_keyDown
|
||||
|
||||
extern "C" void Java_com_turboviking_libnative_NativeApp_keyUp
|
||||
(JNIEnv *, jclass, jint key) {
|
||||
ILOG("Keyup %i", key);
|
||||
ILOG("Keyup %i", key);
|
||||
lock_guard guard(input_state.lock);
|
||||
// Need a mechanism to release these.
|
||||
switch (key) {
|
||||
case 1: // Back
|
||||
|
||||
Reference in new issue
Block a user