Mercurial > vba-clojure
view java/src/com/aurellem/gb/Gb.java @ 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 source
1 package com.aurellem.gb;3 import java.nio.ByteBuffer;6 public class Gb {9 public Gb(){}12 /**13 * Hello World! This is just to test the native interface.14 */15 public static native void sayHello();17 /**18 * Run the emulator on a given rom19 * @param rom - the name of the rom.20 */21 public static native void startEmulator(String rom);24 public static void loadVBA(){25 System.loadLibrary("vba");26 }29 public static native void step();31 public static native void step(int keymask);33 public static native void shutdown();35 }