Emscripten now requires .a.
[SquirrelJME.git] / modules / midp-lcdui / src / main / java / cc / squirreljme / runtime / lcdui / BacklightControl.java
blobf0475996a3278cc3232f9ebcc308b366f0dae1e0
1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
3 // SquirrelJME
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the Mozilla Public License Version 2.0.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package cc.squirreljme.runtime.lcdui;
12 import cc.squirreljme.runtime.cldc.annotation.SquirrelJMEVendorApi;
13 import cc.squirreljme.runtime.cldc.debug.Debugging;
15 /**
16 * Control utilities for the backlight.
18 * @since 2021/11/30
20 @SquirrelJMEVendorApi
21 public final class BacklightControl
23 /** The minimum backlight level. */
24 @SquirrelJMEVendorApi
25 public static final byte MIN_LEVEL =
28 /** The maximum backlight level. */
29 @SquirrelJMEVendorApi
30 public static final byte MAX_LEVEL =
31 100;
33 /** The last backlight level, remove this. */
34 @Deprecated
35 private static volatile int _lastLevel;
37 /**
38 * Sets the level of the backlight.
40 * @param __level The backlight level, if outside of bounds it will be
41 * capped accordingly.
42 * @since 2021/11/30
44 @SquirrelJMEVendorApi
45 public static void setLevel(int __level)
47 if (BacklightControl._lastLevel != __level)
49 Debugging.todoNote("Implement backlight set: %d", __level);
50 BacklightControl._lastLevel = __level;