Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
SDL.Hint
Contents
- data Hint :: * -> * where
- HintAccelerometerAsJoystick :: Hint AccelerometerJoystickOptions
- HintFramebufferAcceleration :: Hint FramebufferAccelerationOptions
- HintMacCTRLClick :: Hint MacCTRLClickOptions
- HintMouseRelativeModeWarp :: Hint MouseModeWarpOptions
- HintRenderDriver :: Hint RenderDrivers
- HintRenderOpenGLShaders :: Hint RenderOpenGLShaderOptions
- HintRenderScaleQuality :: Hint RenderScaleQuality
- HintRenderVSync :: Hint RenderVSyncOptions
- HintVideoWinD3DCompiler :: Hint VideoWinD3DCompilerOptions
- setHintWithPriority :: MonadIO m => HintPriority -> Hint v -> v -> m Bool
- data HintPriority
- clearHints :: MonadIO m => m ()
- data AccelerometerJoystickOptions
- data FramebufferAccelerationOptions
- data MacCTRLClickOptions
- data MouseModeWarpOptions
- data RenderDrivers
- data RenderOpenGLShaderOptions
- data RenderScaleQuality
- data RenderVSyncOptions
- data VideoWinD3DCompilerOptions
Getting and setting hints
data Hint :: * -> * where Source #
The Hint
type exports a well-typed interface to SDL's concept of
hints. This type has instances for
both HasGetter
and HasSetter
, allowing you to get and set hints. Note that
the HasSetter
interface is fairly relaxed - if a hint cannot be set, the
failure will be silently discarded. For more feedback and control when setting
hints, see setHintWithPriority
.
Constructors
setHintWithPriority :: MonadIO m => HintPriority -> Hint v -> v -> m Bool Source #
Set the value of a hint, applying priority rules for when there is a conflict. Ordinarily, a hint will not be set if there is an existing override hint or environment variable that takes precedence.
data HintPriority Source #
How to deal with setting hints when an existing override or environment variable is present.
Constructors
DefaultPriority | Low priority, used for default values |
NormalPriority | Medium priority |
OverridePriority | High priority |
clearHints :: MonadIO m => m () Source #
Hint Information
HintAccelerometerAsJoystick
data AccelerometerJoystickOptions Source #
A hint that specifies whether the Android/iOS built-in accelerometer should be listed as a joystick device, rather than listing actual joysticks only. By default SDL will list real joysticks along with the accelerometer as if it were a 3 axis joystick.
Constructors
AccelerometerNotJoystick | List only real joysticks and accept input from them |
AccelerometerIsJoystick | List real joysticks along with the accelerometer as if it were a 3 axis joystick (the default) |
Instances