-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Splitted UI from the rest od the emulator
- Loading branch information
Showing
18 changed files
with
369 additions
and
522 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
package connectos; | ||
|
||
public class JoypadConnector | ||
{ | ||
private boolean downIsPressed; | ||
private boolean upIsPressed; | ||
private boolean leftIsPressed; | ||
private boolean rightIsPressed; | ||
private boolean startIsPressed; | ||
private boolean selectIsPressed; | ||
private boolean aIsPressed; | ||
private boolean bIsPressed; | ||
|
||
public boolean isDownPressed() | ||
{ | ||
return downIsPressed; | ||
} | ||
|
||
public void setDownPressed(boolean downIsPressed) | ||
{ | ||
this.downIsPressed = downIsPressed; | ||
} | ||
|
||
public boolean isUpPressed() | ||
{ | ||
return upIsPressed; | ||
} | ||
|
||
public void setUpPressed(boolean upIsPressed) | ||
{ | ||
this.upIsPressed = upIsPressed; | ||
} | ||
|
||
public boolean isLeftPressed() | ||
{ | ||
return leftIsPressed; | ||
} | ||
|
||
public void setLeftPressed(boolean leftIsPressed) | ||
{ | ||
this.leftIsPressed = leftIsPressed; | ||
} | ||
|
||
public boolean isRightPressed() | ||
{ | ||
return rightIsPressed; | ||
} | ||
|
||
public void setRightPressed(boolean rightIsPressed) | ||
{ | ||
this.rightIsPressed = rightIsPressed; | ||
} | ||
|
||
public boolean isStartPressed() | ||
{ | ||
return startIsPressed; | ||
} | ||
|
||
public void setStartPressed(boolean startIsPressed) | ||
{ | ||
this.startIsPressed = startIsPressed; | ||
} | ||
|
||
public boolean isSelectPressed() | ||
{ | ||
return selectIsPressed; | ||
} | ||
|
||
public void setSelectPressed(boolean selectIsPressed) | ||
{ | ||
this.selectIsPressed = selectIsPressed; | ||
} | ||
|
||
public boolean isaPressed() | ||
{ | ||
return aIsPressed; | ||
} | ||
|
||
public void setaPressed(boolean aIsPressed) | ||
{ | ||
this.aIsPressed = aIsPressed; | ||
} | ||
|
||
public boolean isbPressed() | ||
{ | ||
return bIsPressed; | ||
} | ||
|
||
public void setbPressed(boolean bIsPressed) | ||
{ | ||
this.bIsPressed = bIsPressed; | ||
} | ||
|
||
} |
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,37 @@ | ||
package connectos; | ||
|
||
import java.awt.image.BufferedImage; | ||
|
||
import ppu.LCD; | ||
|
||
public class LcdConnector | ||
{ | ||
private BufferedImage lcdOutput; | ||
private boolean isLcdOn; | ||
|
||
public LcdConnector() | ||
{ | ||
this.lcdOutput = new BufferedImage(LCD.LCD_WIDTH, LCD.LCD_HEIGHT, BufferedImage.TYPE_INT_RGB); | ||
isLcdOn = false; | ||
} | ||
|
||
public void setImage(BufferedImage lcdOutput) | ||
{ | ||
this.lcdOutput = lcdOutput; | ||
} | ||
|
||
public BufferedImage getImage() | ||
{ | ||
return lcdOutput; | ||
} | ||
|
||
public void setLcdOn(boolean isOn) | ||
{ | ||
this.isLcdOn = isOn; | ||
} | ||
|
||
public boolean isLcdOn() | ||
{ | ||
return isLcdOn; | ||
} | ||
} |
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
Oops, something went wrong.