mischief-sdl
Safe HaskellNone
LanguageGHC2024

Mischief.SDL.Events

Synopsis

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

Instances details
Plugin SDLEventsPlugin Source # 
Instance details

Defined in Mischief.SDL.Events

Methods

deps :: [Dependency] #

init :: System () #

data SDLMessage e Source #

Constructors

SDLMessage 

Fields

Instances

Instances details
Typeable e => Message (SDLMessage e :: Type) Source # 
Instance details

Defined in Mischief.SDL.Events

Show e => Show (SDLMessage e) Source # 
Instance details

Defined in Mischief.SDL.Events

newtype SDLWindow Source #

Constructors

SDLWindow 

Fields