Determine mouse position over terminal display
This commit is contained in:
@@ -6,6 +6,9 @@ module Dodge.Data.ScreenPos
|
||||
import Geometry.Data
|
||||
import Control.Lens
|
||||
|
||||
-- from the center. positive x goes right, positive y goes up.
|
||||
-- a spScreenOff of 1 is the full length of the screen
|
||||
-- for eg see fromTopLeft
|
||||
data ScreenPos = ScreenPos
|
||||
{ _spScreenOff :: Point2
|
||||
, _spPixelOff :: Point2
|
||||
|
||||
Reference in New Issue
Block a user