diff src/clojure/clojure.cpp @ 55:719d910c90f8

can now send button presses to the simulated gameboy
author Robert McIntyre <rlm@mit.edu>
date Wed, 07 Mar 2012 13:24:32 -0600
parents 9d0ec2614443
children ba4fdfb722ed
line wrap: on
line diff
     1.1 --- a/src/clojure/clojure.cpp	Wed Mar 07 12:50:44 2012 -0600
     1.2 +++ b/src/clojure/clojure.cpp	Wed Mar 07 13:24:32 2012 -0600
     1.3 @@ -37,18 +37,35 @@
     1.4    runVBA(2, arguments);
     1.5  }
     1.6  
     1.7 +
     1.8 +
     1.9 +
    1.10  /*
    1.11   * Class:     com_aurellem_gb_Gb
    1.12   * Method:    step
    1.13   * Signature: ()V
    1.14   */
    1.15 -JNIEXPORT void JNICALL Java_com_aurellem_gb_Gb_step
    1.16 +JNIEXPORT void JNICALL Java_com_aurellem_gb_Gb_step__
    1.17  (JNIEnv *env, jclass clazz){
    1.18    step();
    1.19  }
    1.20  
    1.21  /*
    1.22   * Class:     com_aurellem_gb_Gb
    1.23 + * Method:    step
    1.24 + * Signature: (I)V
    1.25 + */
    1.26 +JNIEXPORT void JNICALL Java_com_aurellem_gb_Gb_step__I
    1.27 +(JNIEnv *env, jclass clazz, jint keymask){
    1.28 +  step(keymask);
    1.29 +}
    1.30 +
    1.31 +
    1.32 +
    1.33 +
    1.34 +
    1.35 +/*
    1.36 + * Class:     com_aurellem_gb_Gb
    1.37   * Method:    shutdown
    1.38   * Signature: ()V
    1.39   */
    1.40 @@ -58,3 +75,6 @@
    1.41  }
    1.42  
    1.43  
    1.44 +
    1.45 +
    1.46 +