Game Development Reference
In-Depth Information
public static interface EventListener {
void OnInitVideo(int w, int h);
}
public static void setListener(EventListener l) {
listener = l;
}
/**
* Main Quake Sub
* @param argv Engine args
* @return
*/
public static native int QuakeMain(String[] argv);
/**
* Render 1 frame
*
*/
public static native int RenderFrame();
/**
* Key press
* @param key ascii code
*/
public static native int keyPress(int key);
/**
* Key release
*/
public static native int keyRelease(int key);
/**
* Forward movement using mouse coords
* @param mouseX Delta X
* @param mousey Delta Y
*/
public static native int mouseMove(int mouseX, int mouseY);
/**
* Native audio painter. The native code will write audio bytes to the buffer.
* Mostly PCM 16 stero 22500 (WAV)
*/
public static native int PaintAudio(ByteBuffer buf);
/***********************************************************
* C - Callbacks
***********************************************************/
Search WWH ::




Custom Search