1
0
Fork 0
mirror of https://github.com/Reuh/ubiquitousse.git synced 2025-10-27 17:19:31 +00:00

DAMN SEQUENTIAL ORDER

This commit is contained in:
Reuh 2017-04-05 21:08:34 +02:00
parent e063f55514
commit f3b5338779
3 changed files with 6 additions and 10 deletions

View file

@ -1,6 +1,5 @@
-- ubiquitousse.input
local uqt = require((...):match("^(.-ubiquitousse)%."))
local draw = uqt.draw
--- Used to store inputs which were updated this frame
-- { Input: true, ... }
@ -263,6 +262,7 @@ input = {
-- @tretrun PointerInput the object
-- @impl ubiquitousse
pointer = function(...)
local draw = uqt.draw -- requires width and height
local pointers = {} -- pointers list
local x, y = 0, 0 -- pointer position
local width, height = 1, 1 -- half-dimensions of the movement area