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