Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Commit

Permalink
OMG, making class field public to access it.. I am going to turn this…
Browse files Browse the repository at this point in the history
… codebase in

way bigger mess than previous maintainer!
  • Loading branch information
Alexander-- committed Jan 21, 2013
1 parent 517906a commit 2aab860
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions src/com/androidemu/EmulatorActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,8 @@ protected void onCreate(Bundle savedInstanceState)

loadGlobalSettings();


loadBIOS(cfg.bios);

cfg.setHandler(this);
/*
if (savedInstanceState != null)
{
Expand All @@ -134,17 +132,16 @@ && loadROM(last, false))
@Override
protected boolean isMenuAccessible()
{
return cfg.hintShown_fullScreen ||
(Wrapper.isHwMenuBtnAvailable(this)
? cfg.keysMap[KeyEvent.KEYCODE_MENU] == 0 :
!cfg.fullScreen);
return cfg.hintShown_fullScreen || (Wrapper.isHwMenuBtnAvailable(this)
? keyboard.keysMap[KeyEvent.KEYCODE_MENU] == 0 : !cfg.fullScreen);
}

protected void initResources()
{
super.initResources();

cfg = new UserPrefs(getApplicationContext());
cfg.setHandler(this);
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion src/com/androidemu/gba/input/Keyboard.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class Keyboard implements View.OnKeyListener {

private GameKeyListener gameKeyListener;
private View.OnKeyListener keyListener;
private int[] keysMap = new int[128];
public int[] keysMap = new int[128];
private int keyStates;

public Keyboard(View view, GameKeyListener listener) {
Expand Down

0 comments on commit 2aab860

Please sign in to comment.