nngn
|
Functions | |
function | to_byte (k) |
function | key_event (key, action, mod) |
function pause() nngn function resume() nngn function | press (key, mod) key_event(key |
function | release (key, mod) key_event(key |
function | register (t,...) |
function | register_mouse () |
Variables | |
camera = require "nngn.lib.camera" | |
collision = require "nngn.lib.collision" | |
light = require "nngn.lib.light" | |
nngn_math = require "nngn.lib.math" | |
menu = require "nngn.lib.menu" | |
player = require "nngn.lib.player" | |
textbox = require "nngn.lib.textbox" | |
timing = require "nngn.lib.timing" | |
utils = require "nngn.lib.utils" | |
input = BindingGroup.new() | |
paused_input = BindingGroup.new() | |
function pause() nngn function resume() nngn function Input | KEY_PRESS |
function pause() nngn function resume() nngn function Input mod | end |
function Input | KEY_RELEASE |
m = 1 | |
if mods &Input | MOD_SHIFT = 0 then m = -1 end |
z = not nngn:renderers():zsprites() | |
if mods &Input | MOD_ALT = 0 then return light.sun() end |
a = {nngn:lighting():ambient_light()} | |
then for | i = 1 |
shift< const > = mods & Input.MOD_SHIFT ~= 0 | |
alt< const > = mods & Input.MOD_ALT ~= 0 | |
pause = pause | |
resume = resume | |
press = press | |
release = release | |
install = install | |
function key_event | ( | key | , |
action | , | ||
mod | |||
) |
function register | ( | t | , |
... | |||
) |
function register_mouse | ( | ) |
function release | ( | key | , |
mod | |||
) |
function to_byte | ( | k | ) |
alt< const > = mods & Input.MOD_ALT ~= 0 |
camera = require "nngn.lib.camera" |
collision = require "nngn.lib.collision" |
function Input mod end |
else for i = 1 |
input = BindingGroup.new() |
install = install |
function Input KEY_RELEASE |
light = require "nngn.lib.light" |
m = 1 |
menu = require "nngn.lib.menu" |
nngn_math = require "nngn.lib.math" |
pause = pause |
paused_input = BindingGroup.new() |
player = require "nngn.lib.player" |
press = press |
release = release |
resume = resume |
shift< const > = mods & Input.MOD_SHIFT ~= 0 |
textbox = require "nngn.lib.textbox" |
timing = require "nngn.lib.timing" |
utils = require "nngn.lib.utils" |
z = not nngn:renderers():zsprites() |