Make displayed terminal text screen dragable

This commit is contained in:
2026-04-05 23:45:38 +01:00
parent 017e92470e
commit ed28af8d11
11 changed files with 300 additions and 262 deletions
+2 -1
View File
@@ -25,13 +25,14 @@ data MouseContext
| OverCombFilter
| OverCombEscape
| OverTerminal {_mcoTermID :: Int, _mcoTermStatus :: TerminalStatus}
| OverTerminalBar {_mcoBarOffset :: Point2}
| OutsideTerminal
| MouseGameRotate {_mcoRotateDist :: Float} -- TODO warp mouse to this distance
| OverDebug {_mcoDBBool :: DebugBool, _mcoDBInt :: Int}
deriving (Show)
data Input = Input
{ _mousePos :: Point2 -- in pixels, from the center of the screen
{ _mousePos :: Point2 -- in pixels, from the center of the screen, +ve up and right (I believe)
, _mouseContext :: MouseContext
, _mouseMoving :: Bool
, _pressedKeys :: M.Map Scancode Int
+2
View File
@@ -10,6 +10,7 @@ module Dodge.Data.World (
module Dodge.Data.Input,
) where
import Dodge.Data.SelectionList
import Color.Data
import qualified Data.IntMap.Strict as IM
import NewInt
@@ -58,6 +59,7 @@ data World = World
, _wCam :: Camera
, _unpauseClock :: Int
, _coordinates :: IM.IntMap Point2 -- temporary coordinates for world generation/placement
, _tmLDP :: LDParams
}
data TimeFlowStatus