diff java/src/com/aurellem/gb/Gb.java @ 83:95cb2152d7cd

fleshing out functional gb interface
author Robert McIntyre <rlm@mit.edu>
date Fri, 09 Mar 2012 19:18:00 -0600
parents db8e0a563c8e
children 1ff2c546f5ad
line wrap: on
line diff
     1.1 --- a/java/src/com/aurellem/gb/Gb.java	Fri Mar 09 13:24:02 2012 -0600
     1.2 +++ b/java/src/com/aurellem/gb/Gb.java	Fri Mar 09 19:18:00 2012 -0600
     1.3 @@ -28,7 +28,11 @@
     1.4  
     1.5      public static native void step();
     1.6  
     1.7 -    public static native void step(int keymask);
     1.8 +    public static native void nstep(int keymask);
     1.9 +
    1.10 +    public static void step(int keymask){
    1.11 +	if (-1 == keymask) {step();}
    1.12 +	else {nstep(keymask);}}
    1.13  
    1.14      public static native void shutdown();
    1.15