opened
RobLoach
username_0
This adds `scrollx` and `scrolly` support to `mouse()` for the mouse wheel information (horizontal/vertical).

Fixes #988

The following example is taken from @username_1 cart for testing....

[mouse.tic.zip](https://github.com/nesbox/TIC-80/files/4194529/mouse.tic.zip)
``` lua
-- title:  Input reader
-- author: username_1
-- input: mouse
function TIC()
	local x,y,left,right,middle,scrollx,scrolly=mouse()

	print("X: "..tostring(x), 1, 40, 4, 0, 2)
	print("left: "..tostring(left), 1, 60, 4, 0, 2)
	print("ScrollX: "..tostring(scrollx), 1, 80, 4, 0, 2)
	print("ScrollY: "..tostring(scrolly), 1, 100, 4, 0, 2)
end
```

Once merged, I can update the wiki documentation.
Add ScrollX and ScrollY to mouse()
issue
created
StinkerB06
username_1
1. Remember that the scroll values must be treated as two's complement numbers (-32 to +31).
2. I think you should update the wiki's `mouse()` documentation when 0.80 comes out.
comment
created
RobLoach
username_0
From my investigation, it was an integer from -1 to 1.
comment