mirror of
https://github.com/etlegacy/etlegacy-android.git
synced 2024-11-13 00:04:12 +00:00
java: some cleanup, and hardcode "O" key to be used as alternative fire.
This commit is contained in:
parent
82901cabef
commit
d80aac793e
1 changed files with 3 additions and 3 deletions
|
@ -229,8 +229,8 @@ public class ETLActivity extends SDLActivity implements JoyStickListener {
|
|||
btn_alternative.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
SDLActivity.onNativeKeyDown(36);
|
||||
SDLActivity.onNativeKeyUp(36);
|
||||
SDLActivity.onNativeKeyDown(43);
|
||||
SDLActivity.onNativeKeyUp(43);
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -319,7 +319,7 @@ public class ETLActivity extends SDLActivity implements JoyStickListener {
|
|||
protected void onPostCreate(Bundle savedInstanceState) {
|
||||
super.onPostCreate(savedInstanceState);
|
||||
|
||||
SDLActivity.setWindowStyle(true);
|
||||
setWindowStyle(true);
|
||||
|
||||
if (isAndroidTV() || isChromebook()) {
|
||||
Log.v("ETL", "AndroidTV / ChromeBook Detected, Display UI Disabled!");
|
||||
|
|
Loading…
Reference in a new issue