Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Fixed resolution properly. Fixed soft keys
Browse files Browse the repository at this point in the history
  • Loading branch information
pthalin committed Jun 8, 2020
1 parent aa809f4 commit a8480a9
Show file tree
Hide file tree
Showing 26 changed files with 24 additions and 7 deletions.
6 changes: 6 additions & 0 deletions bittboy-j2me
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
title=Bittboy-J2ME
description=Bittboy-J2ME
exec=/mnt/emus/bittboy-j2me/bin/runjar.sh
clock=702
selectordir=/mnt/emus/bittboy-j2me/dist
selectorelement=1
5 changes: 5 additions & 0 deletions midpath/bin/runjar.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
cd "$(dirname "$0")"

# Start MIDlet from a valid MIDlet suite jar
./midpath-midlet_launcher.sh -jar $1
Original file line number Diff line number Diff line change
Expand Up @@ -363,16 +363,24 @@ private boolean setCommands(int cmdNum, int start, Command[] cmds) {
public boolean keyInput(int type, int keyCode) {
// SoftButtonLayer absorbs all soft button events,
// but only functions on a 'press' event
//System.out.println("[DEBUG] keyInput(): keyCode: " + keyCode + " SB1: " + EventConstants.SOFT_BUTTON1 + " SB2: " + EventConstants.SOFT_BUTTON2);
if (keyCode == EventConstants.SOFT_BUTTON1) {
if (type == EventConstants.PRESSED) {
soft1();
}
return true;
if (soft1 == null)
return false;
else
return true;

} else if (keyCode == EventConstants.SOFT_BUTTON2) {
if (type == EventConstants.PRESSED) {
soft2();
}
return true;
if (soft2 == null)
return false;
else
return true;
}
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,7 @@ public void updateARGBPixels(int[] argbPixels, int x, int y, int widht, int heig

try {
rootARGBSurface.blitSurface(screenSurface);
//screenSurface.updateRect(x, y, widht, heigth);
//*** TODO: Dont use constants
screenSurface.updateRect(x, y, 176, 220);
screenSurface.updateRect(x, y, widht, heigth);
} catch (SDLException e) {
e.printStackTrace();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
##========================================
## Graphics parameters
##========================================
javax.microedition.lcdui.screenWidth:320
javax.microedition.lcdui.screenHeight:240
javax.microedition.lcdui.screenWidth:176
javax.microedition.lcdui.screenHeight:220
# Toolkit configuration (possible values: SDL, virtual)
# The toolkit parameter should be set to "virtual" unless you know what you do.
# (to change the UI backend, see the backend parameter of the virtual toolkit below)
Expand Down
Binary file modified midpath/dist/avetanabt-cldc.jar
Binary file not shown.
Binary file modified midpath/dist/cldc1.1.jar
Binary file not shown.
Binary file modified midpath/dist/escher-cldc.jar
Binary file not shown.
Binary file modified midpath/dist/jgl-cldc.jar
Binary file not shown.
Binary file modified midpath/dist/jlayerme-cldc.jar
Binary file not shown.
Binary file modified midpath/dist/jorbis-cldc.jar
Binary file not shown.
Binary file modified midpath/dist/jsr172-jaxp.jar
Binary file not shown.
Binary file modified midpath/dist/jsr172-jaxrpc.jar
Binary file not shown.
Binary file modified midpath/dist/jsr179-location.jar
Binary file not shown.
Binary file modified midpath/dist/jsr184-m3g.jar
Binary file not shown.
Binary file modified midpath/dist/jsr205-messaging.jar
Binary file not shown.
Binary file added midpath/dist/jsr226-svg-awt.jar
Binary file not shown.
Binary file modified midpath/dist/jsr226-svg-core.jar
Binary file not shown.
Binary file modified midpath/dist/jsr226-svg-midp2.jar
Binary file not shown.
Binary file modified midpath/dist/jsr239-opengles-core.jar
Binary file not shown.
Binary file modified midpath/dist/jsr239-opengles-jgl.jar
Binary file not shown.
Binary file modified midpath/dist/jsr239-opengles-nio.jar
Binary file not shown.
Binary file modified midpath/dist/microbackend.jar
Binary file not shown.
Binary file modified midpath/dist/midpath-demos.jar
Binary file not shown.
Binary file modified midpath/dist/midpath.jar
Binary file not shown.
Binary file modified midpath/dist/sdljava-cldc.jar
Binary file not shown.

0 comments on commit a8480a9

Please sign in to comment.