| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Mischief.SDL.Events
Synopsis
- data SDLEventsPlugin
- data SDLMessage e = SDLMessage {
- eventType :: SDL_EventType
- event :: e
- newtype SDLWindow = SDLWindow {
- ptr :: Ptr SDL_Window
- handleEvents :: System ()
Documentation
This package provides the sdlPlugin for Mischief, along with a few components.
These are necessary to run any SDL-based packages, such as MischiefInput, and MischiefRender.
In order to properly run this, you'll need to build / install SDL locally. This can be done via:
git clone --recurse-submodules https://github.com/PVDoriginal/mischief.git cd mischief/external/SDL3 mkdir -p build && cd build cmake -DCMAKE_BUILD_TYPE=Release -GNinja .. cmake --build . --config Release --parallel sudo cmake --install . --config Release # omit sudo on Windows
On Windows, ensure SDL3.dll is available in PATH (or next to your .exe). If pkg-config cannot find SDL3, set:
set PKG_CONFIG_PATH=pathtoSDL3libpkgconfig # or $env:PKG_CONFIG_PATH="pathtoSDL3libpkgconfig"
data SDLEventsPlugin Source #
Instances
| Plugin SDLEventsPlugin Source # | |
Defined in Mischief.SDL.Events | |
data SDLMessage e Source #
Constructors
| SDLMessage | |
Fields
| |
Instances
| Typeable e => Message (SDLMessage e :: Type) Source # | |
Defined in Mischief.SDL.Events | |
| Show e => Show (SDLMessage e) Source # | |
Defined in Mischief.SDL.Events Methods showsPrec :: Int -> SDLMessage e -> ShowS # show :: SDLMessage e -> String # showList :: [SDLMessage e] -> ShowS # | |
Constructors
| SDLWindow | |
Fields
| |
Instances
| Component SDLWindow Source # | |||||
Defined in Mischief.SDL.Events Associated Types
| |||||
| type IsExclusiveRel SDLWindow Source # | |||||
Defined in Mischief.SDL.Events | |||||
handleEvents :: System () Source #