1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
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
;
16 * Control utilities for the backlight.
21 public final class BacklightControl
23 /** The minimum backlight level. */
25 public static final byte MIN_LEVEL
=
28 /** The maximum backlight level. */
30 public static final byte MAX_LEVEL
=
33 /** The last backlight level, remove this. */
35 private static volatile int _lastLevel
;
38 * Sets the level of the backlight.
40 * @param __level The backlight level, if outside of bounds it will be
45 public static void setLevel(int __level
)
47 if (BacklightControl
._lastLevel
!= __level
)
49 Debugging
.todoNote("Implement backlight set: %d", __level
);
50 BacklightControl
._lastLevel
= __level
;