diff options
Diffstat (limited to 'plug/src/Montis/Core/ButtonEvent.hs')
| -rw-r--r-- | plug/src/Montis/Core/ButtonEvent.hs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/plug/src/Montis/Core/ButtonEvent.hs b/plug/src/Montis/Core/ButtonEvent.hs new file mode 100644 index 0000000..f9c5c48 --- /dev/null +++ b/plug/src/Montis/Core/ButtonEvent.hs @@ -0,0 +1,15 @@ +module Montis.Core.ButtonEvent where + +import Montis.Foreign.WlRoots +import Data.Word (Word32) +import Foreign (Ptr) + +data ButtonState = ButtonReleased | ButtonPressed deriving (Show, Read, Eq, Enum, Ord) + +data ButtonEvent = ButtonEvent { + pointer :: Ptr WlrPointer, + timeMs :: Word32, + button :: Word32, + modifiers :: Word32, + state :: ButtonState +} deriving (Eq, Show, Ord) |