Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
flycast
Commits
598bc85d
Commit
598bc85d
authored
Jan 27, 2014
by
TwistedUmbrella
Browse files
Simulate the entire process of sending key values for L / R
parent
bb302f1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
shell/android/src/com/reicast/emulator/GL2JNIActivity.java
View file @
598bc85d
...
...
@@ -528,10 +528,16 @@ public class GL2JNIActivity extends Activity {
boolean
compat
=
prefs
.
getBoolean
(
"controller_compat"
+
id
,
false
);
if
(
compat
||
custom
[
playerNum
])
{
if
(
keyCode
==
prefs
.
getInt
(
"l_button"
+
id
,
OuyaController
.
BUTTON_L1
))
{
GL2JNIView
.
lt
[
playerNum
]
=
255
;
GL2JNIView
.
lt
[
playerNum
]
=
(
int
)
(
0.5
*
255
);
GL2JNIView
.
lt
[
playerNum
]
=
(
int
)
(
1.0
*
255
);
GL2JNIView
.
lt
[
playerNum
]
=
(
int
)
(
0.5
*
255
);
GL2JNIView
.
lt
[
playerNum
]
=
0
;
}
if
(
keyCode
==
prefs
.
getInt
(
"r_button"
+
id
,
OuyaController
.
BUTTON_R1
))
{
GL2JNIView
.
lt
[
playerNum
]
=
255
;
GL2JNIView
.
lt
[
playerNum
]
=
(
int
)
(
0.5
*
255
);
GL2JNIView
.
lt
[
playerNum
]
=
(
int
)
(
1.0
*
255
);
GL2JNIView
.
lt
[
playerNum
]
=
(
int
)
(
0.5
*
255
);
GL2JNIView
.
lt
[
playerNum
]
=
0
;
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment