Repository navigation
System Module
STBrian edited this page Nov 9, 2026
·
1 revision
The System submodule provides access to hardware and OS runtime state of the Nintendo 3DS console.
| Core.System.getTime | Returns current UNIX timestamp in seconds |
| Core.System.get3DSliderState | Returns the position of the physical 3D slider |
Returns the current UNIX time (seconds since January 1, 1970).
Core.System.getTime() -> numberlocal timestamp = Core.System.getTime()
Core.Debug.log("Current time: " .. timestamp)Returns the current position of the physical 3D Depth Slider on the 3DS console, as a floating point value between 0.0 (3D off) and 1.0 (maximum 3D depth).
Core.System.get3DSliderState() -> numberlocal depth = Core.System.get3DSliderState()
if depth > 0.0 then
-- 3D slider is turned on
end