|
From: Caspian Rychlik-P. <ci...@us...> - 2003-10-28 16:23:20
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl In directory sc8-pr-cvs1:/tmp/cvs-serv12258/src/java/org/lwjgl Modified Files: Sys.java Log Message: New Sys.openURL command added Index: Sys.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/Sys.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/Sys.java,v retrieving revision 1.29 retrieving revision 1.30 diff -u -d -r1.29 -r1.30 --- Sys.java 17 Aug 2003 16:14:36 -0000 1.29 +++ Sys.java 28 Oct 2003 16:23:17 -0000 1.30 @@ -213,4 +213,17 @@ * public static native int getDirectBufferAddress(Buffer buf); */ + + /** + * Open the system web browser and point it at the specified URL. It is recommended + * that this not be called whilst your game is running, but on application exit in + * a shutdown hook, as the screen resolution will not be reset when the browser is + * brought into view. + * + * There is no guarantee that this will work, nor that we can detect if it has + * failed - hence we don't return success code or throw an Exception. This is just a + * best attempt at opening the URL given - don't rely on it to work! + * @param url The URL + */ + public static native void openURL(String url); } |