mod: tick is now called updateState - bitch all you will :p
This commit is contained in:
parent
21b4ec41a2
commit
7e283db15c
|
@ -329,9 +329,8 @@ public final class Window {
|
|||
}
|
||||
|
||||
/**
|
||||
* 'Tick' the window. This must be called at least once per video frame
|
||||
* Updates the windows internal state. This must be called at least once per video frame
|
||||
* to handle window close requests, moves, paints, etc.
|
||||
*/
|
||||
public static native void tick();
|
||||
|
||||
public static native void updateState();
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ public class WindowCreationTest {
|
|||
System.out.println("Display created");
|
||||
|
||||
while(!Window.isCloseRequested()) {
|
||||
Window.tick();
|
||||
Window.updateState();
|
||||
try {
|
||||
Thread.sleep(100);
|
||||
} catch (Exception e) {
|
||||
|
|
|
@ -160,7 +160,7 @@ public class ControllerCreationTest {
|
|||
|
||||
while (Sys.getTime() < endtime) {
|
||||
|
||||
Window.tick();
|
||||
Window.updateState();
|
||||
|
||||
Controller.poll();
|
||||
|
||||
|
|
|
@ -113,7 +113,7 @@ public class ControllerTest {
|
|||
|
||||
private void wiggleController() {
|
||||
while (!Window.isCloseRequested()) {
|
||||
Window.tick();
|
||||
Window.updateState();
|
||||
|
||||
if(Window.isMinimized()) {
|
||||
try {
|
||||
|
|
|
@ -149,7 +149,7 @@ public class HWCursorTest {
|
|||
while (!Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)
|
||||
&& !Window.isCloseRequested()) {
|
||||
// allow subsystem to get a chance to run too
|
||||
Window.tick();
|
||||
Window.updateState();
|
||||
|
||||
if (!Window.isMinimized()) {
|
||||
// check keyboard input
|
||||
|
|
|
@ -118,7 +118,7 @@ public class KeyboardTest {
|
|||
Keyboard.enableTranslation();
|
||||
|
||||
while (!Window.isCloseRequested()) {
|
||||
Window.tick();
|
||||
Window.updateState();
|
||||
|
||||
if(Window.isMinimized()) {
|
||||
try {
|
||||
|
|
|
@ -162,7 +162,7 @@ public class MouseCreationTest {
|
|||
long endtime = Sys.getTime() + Sys.getTimerResolution() * 5;
|
||||
|
||||
while (Sys.getTime() < endtime) {
|
||||
Window.tick();
|
||||
Window.updateState();
|
||||
|
||||
Mouse.poll();
|
||||
|
||||
|
|
|
@ -113,7 +113,7 @@ public class MouseTest {
|
|||
|
||||
private void wiggleMouse() {
|
||||
while (!Window.isCloseRequested()) {
|
||||
Window.tick();
|
||||
Window.updateState();
|
||||
|
||||
if(Window.isMinimized()) {
|
||||
try {
|
||||
|
|
|
@ -156,7 +156,7 @@ public class MovingSoundTest extends BasicTest {
|
|||
System.out.println("Move source with arrow keys\nMove listener with right shift and arrowkeys\nEnable EAX effect by pressing e (if available)\nExit with ESC");
|
||||
|
||||
while(!Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)) {
|
||||
Window.tick();
|
||||
Window.updateState();
|
||||
|
||||
Keyboard.poll();
|
||||
if(Keyboard.isKeyDown(Keyboard.KEY_LEFT)) {
|
||||
|
|
|
@ -113,7 +113,7 @@ public class FullScreenWindowedTest {
|
|||
while (!Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)
|
||||
&& !Window.isCloseRequested()) {
|
||||
// allow subsystem to get a chance to run too
|
||||
Window.tick();
|
||||
Window.updateState();
|
||||
|
||||
if (!Window.isMinimized()) {
|
||||
// check keyboard input
|
||||
|
|
|
@ -98,7 +98,7 @@ public final class Game {
|
|||
try {
|
||||
init();
|
||||
while (!finished) {
|
||||
Window.tick();
|
||||
Window.updateState();
|
||||
|
||||
if (Window.isMinimized())
|
||||
Thread.sleep(200);
|
||||
|
|
|
@ -122,7 +122,7 @@ public class PbufferTest {
|
|||
while (!Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)
|
||||
&& !Window.isCloseRequested()) {
|
||||
// allow subsystem to get a chance to run too
|
||||
Window.tick();
|
||||
Window.updateState();
|
||||
|
||||
if (!Window.isMinimized()) {
|
||||
// check keyboard input
|
||||
|
|
|
@ -100,7 +100,7 @@ public final class VBOIndexTest {
|
|||
try {
|
||||
init();
|
||||
while (!finished) {
|
||||
Window.tick();
|
||||
Window.updateState();
|
||||
|
||||
if (Window.isMinimized())
|
||||
Thread.sleep(200);
|
||||
|
|
|
@ -96,7 +96,7 @@ public final class VBOTest {
|
|||
try {
|
||||
init();
|
||||
while (!finished) {
|
||||
Window.tick();
|
||||
Window.updateState();
|
||||
|
||||
if (Window.isMinimized())
|
||||
Thread.sleep(200);
|
||||
|
|
|
@ -102,10 +102,10 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_nDestroy
|
|||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_Window
|
||||
* Method: tick
|
||||
* Method: updateState
|
||||
* Signature: ()V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_tick
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_updateState
|
||||
(JNIEnv *, jclass);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -256,10 +256,10 @@ int getWindowHeight(void) {
|
|||
|
||||
/*
|
||||
* Class: org_lwjgl_Window
|
||||
* Method: tick
|
||||
* Method: updateState
|
||||
* Signature: ()V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_tick
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_updateState
|
||||
(JNIEnv *env, jclass clazz)
|
||||
{
|
||||
handleMessages();
|
||||
|
|
|
@ -477,10 +477,10 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_nSetTitle
|
|||
|
||||
/*
|
||||
* Class: org_lwjgl_Window
|
||||
* Method: tick
|
||||
* Method: updateState
|
||||
* Signature: ()V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_tick
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_updateState
|
||||
(JNIEnv * env, jclass clazz)
|
||||
{
|
||||
handleMessages(env, clazz);
|
||||
|
|
Loading…
Reference in New Issue