Mostly use String instead of Text

This commit is contained in:
2023-01-15 12:26:45 +00:00
parent 64b1c2761e
commit a50e2ff406
18 changed files with 50 additions and 65 deletions
+2 -3
View File
@@ -7,7 +7,6 @@ module Dodge.Event.Input (
handleMouseWheelEvent,
) where
import qualified Data.Text as T
import Dodge.Data.Config
import Dodge.Data.Input
import LensHelp
@@ -15,8 +14,8 @@ import SDL
-- annoyingly, the text input event doesn't register backspace, so deletion has to be
-- dealt with separately
handleTextInput :: T.Text -> Input -> Input
handleTextInput text = textInput %~ (`T.append` text)
handleTextInput :: String -> Input -> Input
handleTextInput text = textInput %~ (++ text)
-- | Handles keyboard press and release.
handleKeyboardEvent :: KeyboardEventData -> Input -> Input