|
@@ -42,69 +42,88 @@ import java.util.prefs.Preferences;
|
|
|
|
|
|
/**
|
|
|
* <code>AppSettings</code> provides a store of configuration
|
|
|
- * to be used by the application.
|
|
|
+ * to be used by the application.
|
|
|
* <p>
|
|
|
* By default only the {@link JmeContext context} uses the configuration,
|
|
|
- * however the user may set and retrieve the settings as well.
|
|
|
- * The settings can be stored either in the Java preferences
|
|
|
+ * however the user may set and retrieve the settings as well.
|
|
|
+ * The settings can be stored either in the Java preferences
|
|
|
* (using {@link #save(java.lang.String) } or
|
|
|
* a .properties file (using {@link #save(java.io.OutputStream) }.
|
|
|
- *
|
|
|
+ *
|
|
|
* @author Kirill Vainer
|
|
|
*/
|
|
|
public final class AppSettings extends HashMap<String, Object> {
|
|
|
|
|
|
private static final AppSettings defaults = new AppSettings(false);
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Use LWJGL as the display system and force using the OpenGL1.1 renderer.
|
|
|
- *
|
|
|
- * @see AppSettings#setRenderer(java.lang.String)
|
|
|
+ *
|
|
|
+ * @see AppSettings#setRenderer(java.lang.String)
|
|
|
*/
|
|
|
public static final String LWJGL_OPENGL1 = "LWJGL-OPENGL1";
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Use LWJGL as the display system and force using the OpenGL2.0 renderer.
|
|
|
* <p>
|
|
|
* If the underlying system does not support OpenGL2.0, then the context
|
|
|
* initialization will throw an exception.
|
|
|
- *
|
|
|
- * @see AppSettings#setRenderer(java.lang.String)
|
|
|
+ *
|
|
|
+ * @see AppSettings#setRenderer(java.lang.String)
|
|
|
*/
|
|
|
public static final String LWJGL_OPENGL2 = "LWJGL-OpenGL2";
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Use LWJGL as the display system and force using the core OpenGL3.3 renderer.
|
|
|
* <p>
|
|
|
* If the underlying system does not support OpenGL3.2, then the context
|
|
|
* initialization will throw an exception. Note that currently jMonkeyEngine
|
|
|
- * does not have any shaders that support OpenGL3.2 therefore this
|
|
|
+ * does not have any shaders that support OpenGL3.2 therefore this
|
|
|
* option is not useful.
|
|
|
* <p>
|
|
|
* Note: OpenGL 3.2 is used to give 3.x support to Mac users.
|
|
|
- *
|
|
|
- * @see AppSettings#setRenderer(java.lang.String)
|
|
|
+ *
|
|
|
+ * @see AppSettings#setRenderer(java.lang.String)
|
|
|
*/
|
|
|
public static final String LWJGL_OPENGL3 = "LWJGL-OpenGL3";
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
- * Use LWJGL as the display system and allow the context
|
|
|
+ * Use LWJGL as the display system and allow the context
|
|
|
* to choose an appropriate renderer based on system capabilities.
|
|
|
* <p>
|
|
|
* If the GPU supports OpenGL2 or later, then the OpenGL2.0 renderer will
|
|
|
* be used, otherwise, the OpenGL1.1 renderer is used.
|
|
|
- *
|
|
|
- * @see AppSettings#setRenderer(java.lang.String)
|
|
|
+ *
|
|
|
+ * @see AppSettings#setRenderer(java.lang.String)
|
|
|
*/
|
|
|
public static final String LWJGL_OPENGL_ANY = "LWJGL-OpenGL-Any";
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Use the LWJGL OpenAL based renderer for audio capabilities.
|
|
|
- *
|
|
|
- * @see AppSettings#setAudioRenderer(java.lang.String)
|
|
|
+ *
|
|
|
+ * @see AppSettings#setAudioRenderer(java.lang.String)
|
|
|
*/
|
|
|
public static final String LWJGL_OPENAL = "LWJGL";
|
|
|
|
|
|
+ /**
|
|
|
+ * Use the Android MediaPlayer / SoundPool based renderer for Android audio capabilities.
|
|
|
+ * <p>
|
|
|
+ * NOTE: Supports Android 2.2+ platforms. This is the current default for
|
|
|
+ * Android platforms.
|
|
|
+ *
|
|
|
+ * @see AppSettings#setAudioRenderer(java.lang.String)
|
|
|
+ */
|
|
|
+ public static final String ANDROID_MEDIAPLAYER = "MediaPlayer";
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Use the OpenAL Soft based renderer for Android audio capabilities.
|
|
|
+ * <p>
|
|
|
+ * NOTE: Only to be used on Android 2.3+ platforms due to using OpenSL.
|
|
|
+ *
|
|
|
+ * @see AppSettings#setAudioRenderer(java.lang.String)
|
|
|
+ */
|
|
|
+ public static final String ANDROID_OPENAL_SOFT = "OpenAL_SOFT";
|
|
|
+
|
|
|
static {
|
|
|
defaults.put("Width", 640);
|
|
|
defaults.put("Height", 480);
|
|
@@ -131,10 +150,10 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
* Create a new instance of <code>AppSettings</code>.
|
|
|
* <p>
|
|
|
* If <code>loadDefaults</code> is true, then the default settings
|
|
|
- * will be set on the AppSettings.
|
|
|
+ * will be set on the AppSettings.
|
|
|
* Use false if you want to change some settings but you would like the
|
|
|
* application to load settings from previous launches.
|
|
|
- *
|
|
|
+ *
|
|
|
* @param loadDefaults If default settings are to be loaded.
|
|
|
*/
|
|
|
public AppSettings(boolean loadDefaults) {
|
|
@@ -145,11 +164,11 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
|
|
|
/**
|
|
|
* Copies all settings from <code>other</code> to <code>this</code>
|
|
|
- * AppSettings.
|
|
|
+ * AppSettings.
|
|
|
* <p>
|
|
|
* Any settings that are specified in other will overwrite settings
|
|
|
* set on this AppSettings.
|
|
|
- *
|
|
|
+ *
|
|
|
* @param other The AppSettings to copy the settings from
|
|
|
*/
|
|
|
public void copyFrom(AppSettings other) {
|
|
@@ -159,7 +178,7 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
/**
|
|
|
* Same as {@link #copyFrom(com.jme3.system.AppSettings) }, except
|
|
|
* doesn't overwrite settings that are already set.
|
|
|
- *
|
|
|
+ *
|
|
|
* @param other The AppSettings to merge the settings from
|
|
|
*/
|
|
|
public void mergeFrom(AppSettings other) {
|
|
@@ -172,11 +191,11 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
|
|
|
/**
|
|
|
* Loads the settings from the given properties input stream.
|
|
|
- *
|
|
|
+ *
|
|
|
* @param in The InputStream to load from
|
|
|
* @throws IOException If an IOException occurs
|
|
|
- *
|
|
|
- * @see #save(java.io.OutputStream)
|
|
|
+ *
|
|
|
+ * @see #save(java.io.OutputStream)
|
|
|
*/
|
|
|
public void load(InputStream in) throws IOException {
|
|
|
Properties props = new Properties();
|
|
@@ -207,11 +226,11 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
|
|
|
/**
|
|
|
* Saves all settings to the given properties output stream.
|
|
|
- *
|
|
|
+ *
|
|
|
* @param out The OutputStream to write to
|
|
|
* @throws IOException If an IOException occurs
|
|
|
- *
|
|
|
- * @see #load(java.io.InputStream)
|
|
|
+ *
|
|
|
+ * @see #load(java.io.InputStream)
|
|
|
*/
|
|
|
public void save(OutputStream out) throws IOException {
|
|
|
Properties props = new Properties();
|
|
@@ -238,11 +257,11 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
|
|
|
/**
|
|
|
* Loads settings previously saved in the Java preferences.
|
|
|
- *
|
|
|
+ *
|
|
|
* @param preferencesKey The preferencesKey previously used to save the settings.
|
|
|
* @throws BackingStoreException If an exception occurs with the preferences
|
|
|
- *
|
|
|
- * @see #save(java.lang.String)
|
|
|
+ *
|
|
|
+ * @see #save(java.lang.String)
|
|
|
*/
|
|
|
public void load(String preferencesKey) throws BackingStoreException {
|
|
|
Preferences prefs = Preferences.userRoot().node(preferencesKey);
|
|
@@ -289,10 +308,10 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
* On the Windows operating system, the preferences are saved in the registry
|
|
|
* at the following key:<br>
|
|
|
* <code>HKEY_CURRENT_USER\Software\JavaSoft\Prefs\[preferencesKey]</code>
|
|
|
- *
|
|
|
- * @param preferencesKey The preferences key to save at. Generally the
|
|
|
- * application's unique name.
|
|
|
- *
|
|
|
+ *
|
|
|
+ * @param preferencesKey The preferences key to save at. Generally the
|
|
|
+ * application's unique name.
|
|
|
+ *
|
|
|
* @throws BackingStoreException If an exception occurs with the preferences
|
|
|
*/
|
|
|
public void save(String preferencesKey) throws BackingStoreException {
|
|
@@ -302,7 +321,7 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
// purge any other parameters set in older versions of the app, so
|
|
|
// that they don't leak onto the AppSettings of newer versions.
|
|
|
prefs.clear();
|
|
|
-
|
|
|
+
|
|
|
for (String key : keySet()) {
|
|
|
Object val = get(key);
|
|
|
if (val instanceof Integer) {
|
|
@@ -314,12 +333,12 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
} else if (val instanceof Boolean) {
|
|
|
prefs.putBoolean("B_" + key, (Boolean) val);
|
|
|
}
|
|
|
- // NOTE: Ignore any parameters of unsupported types instead
|
|
|
- // of throwing exception. This is specifically for handling
|
|
|
+ // NOTE: Ignore any parameters of unsupported types instead
|
|
|
+ // of throwing exception. This is specifically for handling
|
|
|
// BufferedImage which is used in setIcons(), as you do not
|
|
|
// want to export such data in the preferences.
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// Ensure the data is properly written into preferences before
|
|
|
// continuing.
|
|
|
prefs.sync();
|
|
@@ -366,7 +385,7 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
|
|
|
return s;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Get a float from the settings.
|
|
|
* <p>
|
|
@@ -401,51 +420,51 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
public void putString(String key, String value) {
|
|
|
put(key, value);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Set a float on the settings.
|
|
|
*/
|
|
|
public void putFloat(String key, float value) {
|
|
|
put(key, Float.valueOf(value));
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Enable or disable mouse emulation on touchscreen based devices.
|
|
|
* This will convert taps on the touchscreen or movement of finger
|
|
|
* over touchscreen (only the first) into the appropriate mouse events.
|
|
|
- *
|
|
|
+ *
|
|
|
* @param emulateMouse If mouse emulation should be enabled.
|
|
|
*/
|
|
|
public void setEmulateMouse(boolean emulateMouse) {
|
|
|
putBoolean("TouchEmulateMouse", emulateMouse);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Returns true if mouse emulation is enabled, false otherwise.
|
|
|
- *
|
|
|
+ *
|
|
|
* @return Mouse emulation mode.
|
|
|
*/
|
|
|
public boolean isEmulateMouse() {
|
|
|
return getBoolean("TouchEmulateMouse");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Specify if the X or Y (or both) axes should be flipped for emulated mouse.
|
|
|
- *
|
|
|
+ *
|
|
|
* @param flipX Set to flip X axis
|
|
|
* @param flipY Set to flip Y axis
|
|
|
- *
|
|
|
- * @see #setEmulateMouse(boolean)
|
|
|
+ *
|
|
|
+ * @see #setEmulateMouse(boolean)
|
|
|
*/
|
|
|
public void setEmulateMouseFlipAxis(boolean flipX, boolean flipY) {
|
|
|
putBoolean("TouchEmulateMouseFlipX", flipX);
|
|
|
putBoolean("TouchEmulateMouseFlipY", flipY);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
public boolean isEmulateMouseFlipX() {
|
|
|
return getBoolean("TouchEmulateMouseFlipX");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
public boolean isEmulateMouseFlipY() {
|
|
|
return getBoolean("TouchEmulateMouseFlipY");
|
|
|
}
|
|
@@ -484,7 +503,7 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
* <li>AppSettings.LWJGL_OPENGL1 - Force OpenGL1.1 compatability</li>
|
|
|
* <li>AppSettings.LWJGL_OPENGL2 - Force OpenGL2 compatability</li>
|
|
|
* <li>AppSettings.LWJGL_OPENGL3 - Force OpenGL3.3 compatability</li>
|
|
|
- * <li>AppSettings.LWJGL_OPENGL_ANY - Choose an appropriate
|
|
|
+ * <li>AppSettings.LWJGL_OPENGL_ANY - Choose an appropriate
|
|
|
* OpenGL version based on system capabilities</li>
|
|
|
* <li>null - Disable graphics rendering</li>
|
|
|
* </ul>
|
|
@@ -496,7 +515,7 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Set a custom graphics renderer to use. The class should implement
|
|
|
+ * Set a custom graphics renderer to use. The class should implement
|
|
|
* the {@link JmeContext} interface.
|
|
|
* @param clazz The custom context class.
|
|
|
* (Default: not set)
|
|
@@ -511,7 +530,7 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
* <li>AppSettings.LWJGL_OPENAL - Default for LWJGL</li>
|
|
|
* <li>null - Disable audio</li>
|
|
|
* </ul>
|
|
|
- * @param audioRenderer
|
|
|
+ * @param audioRenderer
|
|
|
* (Default: LWJGL)
|
|
|
*/
|
|
|
public void setAudioRenderer(String audioRenderer) {
|
|
@@ -573,10 +592,10 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
setMinHeight(height);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
- * Set the frequency, also known as refresh rate, for the
|
|
|
+ * Set the frequency, also known as refresh rate, for the
|
|
|
* rendering display.
|
|
|
* @param value The frequency
|
|
|
* (Default: 60)
|
|
@@ -593,13 +612,13 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
* 16 bits. On some platforms 24 bits might not be supported, in that case,
|
|
|
* specify 16 bits.<p>
|
|
|
* (Default: 24)
|
|
|
- *
|
|
|
+ *
|
|
|
* @param value The depth bits
|
|
|
*/
|
|
|
public void setDepthBits(int value){
|
|
|
putInteger("DepthBits", value);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Set the number of stencil bits.
|
|
|
* <p>
|
|
@@ -608,17 +627,17 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
* the stencil buffer.
|
|
|
* </p>
|
|
|
* (Default: 0)
|
|
|
- *
|
|
|
+ *
|
|
|
* @param value Number of stencil bits
|
|
|
*/
|
|
|
public void setStencilBits(int value){
|
|
|
putInteger("StencilBits", value);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Set the bits per pixel for the display. Appropriate
|
|
|
* values are 16 for RGB565 color format, or 24 for RGB8 color format.
|
|
|
- *
|
|
|
+ *
|
|
|
* @param value The bits per pixel to set
|
|
|
* (Default: 24)
|
|
|
*/
|
|
@@ -630,7 +649,7 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
* Set the number of samples per pixel. A value of 1 indicates
|
|
|
* each pixel should be single-sampled, higher values indicate
|
|
|
* a pixel should be multi-sampled.
|
|
|
- *
|
|
|
+ *
|
|
|
* @param value The number of samples
|
|
|
* (Default: 1)
|
|
|
*/
|
|
@@ -657,16 +676,16 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
/**
|
|
|
* Set to true to enable vertical-synchronization, limiting and synchronizing
|
|
|
* every frame rendered to the monitor's refresh rate.
|
|
|
- * @param value
|
|
|
+ * @param value
|
|
|
* (Default: false)
|
|
|
*/
|
|
|
public void setVSync(boolean value) {
|
|
|
putBoolean("VSync", value);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Enable 3D stereo.
|
|
|
- * <p>This feature requires hardware support from the GPU driver.
|
|
|
+ * <p>This feature requires hardware support from the GPU driver.
|
|
|
* @see <a href="http://en.wikipedia.org/wiki/Quad_buffering">http://en.wikipedia.org/wiki/Quad_buffering</a><br />
|
|
|
* Once enabled, filters or scene processors that handle 3D stereo rendering
|
|
|
* could use this feature to render using hardware 3D stereo.</p>
|
|
@@ -693,16 +712,16 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
public void setIcons(Object[] value) {
|
|
|
put("Icons", value);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Sets the path of the settings dialog image to use.
|
|
|
* <p>
|
|
|
- * The image will be displayed in the settings dialog when the
|
|
|
+ * The image will be displayed in the settings dialog when the
|
|
|
* application is started.
|
|
|
* </p>
|
|
|
* (Default: /com/jme3/app/Monkey.png)
|
|
|
- *
|
|
|
- * @param path The path to the image in the classpath.
|
|
|
+ *
|
|
|
+ * @param path The path to the image in the classpath.
|
|
|
*/
|
|
|
public void setSettingsDialogImage(String path) {
|
|
|
putString("SettingsDialogImage", path);
|
|
@@ -710,7 +729,7 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
|
|
|
/**
|
|
|
* Get the framerate.
|
|
|
- * @see #setFrameRate(int)
|
|
|
+ * @see #setFrameRate(int)
|
|
|
*/
|
|
|
public int getFrameRate() {
|
|
|
return getInteger("FrameRate");
|
|
@@ -718,7 +737,7 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
|
|
|
/**
|
|
|
* Get the use input state.
|
|
|
- * @see #setUseInput(boolean)
|
|
|
+ * @see #setUseInput(boolean)
|
|
|
*/
|
|
|
public boolean useInput() {
|
|
|
return getBoolean("UseInput");
|
|
@@ -726,7 +745,7 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
|
|
|
/**
|
|
|
* Get the renderer
|
|
|
- * @see #setRenderer(java.lang.String)
|
|
|
+ * @see #setRenderer(java.lang.String)
|
|
|
*/
|
|
|
public String getRenderer() {
|
|
|
return getString("Renderer");
|
|
@@ -734,7 +753,7 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
|
|
|
/**
|
|
|
* Get the width
|
|
|
- * @see #setWidth(int)
|
|
|
+ * @see #setWidth(int)
|
|
|
*/
|
|
|
public int getWidth() {
|
|
|
return getInteger("Width");
|
|
@@ -742,7 +761,7 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
|
|
|
/**
|
|
|
* Get the height
|
|
|
- * @see #setHeight(int)
|
|
|
+ * @see #setHeight(int)
|
|
|
*/
|
|
|
public int getHeight() {
|
|
|
return getInteger("Height");
|
|
@@ -750,7 +769,7 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
|
|
|
/**
|
|
|
* Get the width
|
|
|
- * @see #setWidth(int)
|
|
|
+ * @see #setWidth(int)
|
|
|
*/
|
|
|
public int getMinWidth() {
|
|
|
return getInteger("MinWidth");
|
|
@@ -758,7 +777,7 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
|
|
|
/**
|
|
|
* Get the height
|
|
|
- * @see #setHeight(int)
|
|
|
+ * @see #setHeight(int)
|
|
|
*/
|
|
|
public int getMinHeight() {
|
|
|
return getInteger("MinHeight");
|
|
@@ -766,7 +785,7 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
|
|
|
/**
|
|
|
* Get the bits per pixel
|
|
|
- * @see #setBitsPerPixel(int)
|
|
|
+ * @see #setBitsPerPixel(int)
|
|
|
*/
|
|
|
public int getBitsPerPixel() {
|
|
|
return getInteger("BitsPerPixel");
|
|
@@ -774,7 +793,7 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
|
|
|
/**
|
|
|
* Get the frequency
|
|
|
- * @see #setFrequency(int)
|
|
|
+ * @see #setFrequency(int)
|
|
|
*/
|
|
|
public int getFrequency() {
|
|
|
return getInteger("Frequency");
|
|
@@ -790,7 +809,7 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
|
|
|
/**
|
|
|
* Get the number of stencil bits
|
|
|
- * @see #setStencilBits(int)
|
|
|
+ * @see #setStencilBits(int)
|
|
|
*/
|
|
|
public int getStencilBits() {
|
|
|
return getInteger("StencilBits");
|
|
@@ -798,7 +817,7 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
|
|
|
/**
|
|
|
* Get the number of samples
|
|
|
- * @see #setSamples(int)
|
|
|
+ * @see #setSamples(int)
|
|
|
*/
|
|
|
public int getSamples() {
|
|
|
return getInteger("Samples");
|
|
@@ -806,7 +825,7 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
|
|
|
/**
|
|
|
* Get the application title
|
|
|
- * @see #setTitle(java.lang.String)
|
|
|
+ * @see #setTitle(java.lang.String)
|
|
|
*/
|
|
|
public String getTitle() {
|
|
|
return getString("Title");
|
|
@@ -814,7 +833,7 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
|
|
|
/**
|
|
|
* Get the vsync state
|
|
|
- * @see #setVSync(boolean)
|
|
|
+ * @see #setVSync(boolean)
|
|
|
*/
|
|
|
public boolean isVSync() {
|
|
|
return getBoolean("VSync");
|
|
@@ -822,7 +841,7 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
|
|
|
/**
|
|
|
* Get the fullscreen state
|
|
|
- * @see #setFullscreen(boolean)
|
|
|
+ * @see #setFullscreen(boolean)
|
|
|
*/
|
|
|
public boolean isFullscreen() {
|
|
|
return getBoolean("Fullscreen");
|
|
@@ -830,7 +849,7 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
|
|
|
/**
|
|
|
* Get the use joysticks state
|
|
|
- * @see #setUseJoysticks(boolean)
|
|
|
+ * @see #setUseJoysticks(boolean)
|
|
|
*/
|
|
|
public boolean useJoysticks() {
|
|
|
return !getBoolean("DisableJoysticks");
|
|
@@ -838,31 +857,31 @@ public final class AppSettings extends HashMap<String, Object> {
|
|
|
|
|
|
/**
|
|
|
* Get the audio renderer
|
|
|
- * @see #setAudioRenderer(java.lang.String)
|
|
|
+ * @see #setAudioRenderer(java.lang.String)
|
|
|
*/
|
|
|
public String getAudioRenderer() {
|
|
|
return getString("AudioRenderer");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Get the stereo 3D state
|
|
|
- * @see #setStereo3D(boolean)
|
|
|
+ * @see #setStereo3D(boolean)
|
|
|
*/
|
|
|
public boolean useStereo3D(){
|
|
|
- return getBoolean("Stereo3D");
|
|
|
+ return getBoolean("Stereo3D");
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Get the icon array
|
|
|
- * @see #setIcons(java.lang.Object[])
|
|
|
+ * @see #setIcons(java.lang.Object[])
|
|
|
*/
|
|
|
public Object[] getIcons() {
|
|
|
return (Object[]) get("Icons");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Get the settings dialog image
|
|
|
- * @see #setSettingsDialogImage(java.lang.String)
|
|
|
+ * @see #setSettingsDialogImage(java.lang.String)
|
|
|
*/
|
|
|
public String getSettingsDialogImage() {
|
|
|
return getString("SettingsDialogImage");
|