Module ctr

The ctr module.

Usage:

    local ctr = require("ctr")

Functions

run () Return whether or not the program should continue.
time () Return the number of milliseconds spent since some point in time.
utime () Return a number of microseconds based on the system ticks.

Tables

gfx The ctr.gfx module.
news The ctr.news module.
ptm The ctr.ptm module.
hid The ctr.hid module.
ir The ctr.ir module.
fs The ctr.fs module.
httpc The ctr.httpc module.
qtm The ctr.qtm module.
cfgu The ctr.cfgu module.
socket The ctr.socket module.
cam The ctr.cam module.
audio The ctr.audio module.
apt The ctr.apt module.
mic The ctr.mic module.
thread The ctr.thread module.
uds The ctr.uds module.
swkbd The ctr.swkbd module.

Fields

version Running version of ctrµLua.
build Running build of ctrµLua.
root Root directory of ctrµLua.
hb Whether or not ctrµLua has been launched with ninjhax


Functions

run ()
Return whether or not the program should continue.

Returns:

    boolean false if the program should exist or true if it can continue
time ()
Return the number of milliseconds spent since some point in time. This can be used to measure a duration with milliseconds precision; however this can't be used to get the current time or date. See Lua's os.date() for this use. For various reasons (see the C source), this will actually returns a negative value.

Returns:

    number milliseconds

Usage:

    -- Measuring a duration:
    local startTime = ctr.time()
    -- do stuff
    local duration = ctr.time() - startTime
utime ()
Return a number of microseconds based on the system ticks.

Returns:

    number microseconds

Tables

gfx
The ctr.gfx module.

See also:

news
The ctr.news module.

See also:

ptm
The ctr.ptm module.

See also:

hid
The ctr.hid module.

See also:

ir
The ctr.ir module.

See also:

fs
The ctr.fs module.

See also:

httpc
The ctr.httpc module.

See also:

qtm
The ctr.qtm module.

See also:

cfgu
The ctr.cfgu module.

See also:

socket
The ctr.socket module.

See also:

cam
The ctr.cam module.

See also:

audio
The ctr.audio module.

See also:

apt
The ctr.apt module.

See also:

mic
The ctr.mic module.

See also:

thread
The ctr.thread module.

See also:

uds
The ctr.uds module.

See also:

swkbd
The ctr.swkbd module.

See also:

Fields

version
Running version of ctrµLua. This string contains the exact name of the last (pre-)release tag.
  • version
build
Running build of ctrµLua. This string contains the last commit hash.
  • build
root
Root directory of ctrµLua. Contains the working directory where ctrµLua has been launched OR the romfs root if romfs has been enabled.
  • root
hb
Whether or not ctrµLua has been launched with ninjhax
  • hb
generated by LDoc 1.4.3 Last updated 2017-06-05 14:35:27