- [NEW] mouse.inside(x,y,w,h)
- [WIP] fonted tool
This commit is contained in:
@@ -17,6 +17,11 @@ function surf.new(w, h) end
|
||||
---Load GIF file and return surface
|
||||
function surf.load(filename) end
|
||||
|
||||
---@param filename string
|
||||
---@return number surface
|
||||
---Load GIF from external file and return surface
|
||||
function surf.loadex(filename) end
|
||||
|
||||
---@param surface number
|
||||
---@param filename string
|
||||
---@optional palette table
|
||||
@@ -525,6 +530,15 @@ function mouse.dblclick() end
|
||||
---Ignores current down button, effectively not raising the next "press" event
|
||||
function mouse.discard() end
|
||||
|
||||
---@param x number
|
||||
---@param y number
|
||||
---@param w number
|
||||
---@param h number
|
||||
---@return boolean
|
||||
---Returns whether the mouse is inside the rectangle specified
|
||||
function mouse.inside(x,y,w,h) end
|
||||
|
||||
|
||||
mouse.LEFT = 1
|
||||
mouse.MIDDLE = 2
|
||||
mouse.RIGHT = 3
|
||||
|
||||
Reference in New Issue
Block a user