Files
src/miniquake/platform/win32.ml
- Package
miniquake.platform.win32- Reachable
- Yes
Imports
Declarations
# activate
function activate(active, minimizedValue)
Implements the `activate` operation for `miniquake.platform.win32` (activate).
| Parameter | Type | Default | Description |
|---|
active | dynamic | — | The active input consumed by `activate`. |
minimizedValue | dynamic | — | The minimized value input consumed by `activate`. |
View source
# captureMouse
function captureMouse(enabled)
Implements the `captureMouse` operation for `miniquake.platform.win32` (capture mouse).
| Parameter | Type | Default | Description |
|---|
enabled | dynamic | — | Whether the optional behavior is enabled. |
View source
# centerCursor
function centerCursor()
Implements the `centerCursor` operation for `miniquake.platform.win32` (center cursor).
View source
# configureDisplayMode
function configureDisplayMode(widthValue, heightValue, bpp, frequency, fullscreen, useCurrent)
Update subsystem configuration for configure display mode.
| Parameter | Type | Default | Description |
|---|
widthValue | dynamic | — | The width value input consumed by `configureDisplayMode`. |
heightValue | dynamic | — | The height value input consumed by `configureDisplayMode`. |
bpp | dynamic | — | The bpp input consumed by `configureDisplayMode`. |
frequency | dynamic | — | The frequency input consumed by `configureDisplayMode`. |
fullscreen | dynamic | — | The fullscreen input consumed by `configureDisplayMode`. |
useCurrent | dynamic | — | The use current input consumed by `configureDisplayMode`. |
View source
# contextReady
function contextReady()
Implements the `contextReady` operation for `miniquake.platform.win32` (context ready).
View source
# create
function create(title, width, height, fullscreen)
Implements the `create` operation for `miniquake.platform.win32` (create).
| Parameter | Type | Default | Description |
|---|
title | dynamic | — | The title input consumed by `create`. |
width | dynamic | — | Requested width in pixels or data units. |
height | dynamic | — | Requested height in pixels or data units. |
fullscreen | dynamic | — | The fullscreen input consumed by `create`. |
View source
# desktopHeight
function desktopHeight()
Implements the `desktopHeight` operation for `miniquake.platform.win32` (desktop height).
View source
# desktopWidth
function desktopWidth()
Implements the `desktopWidth` operation for `miniquake.platform.win32` (desktop width).
View source
# destroy
function destroy()
Implements the `destroy` operation for `miniquake.platform.win32` (destroy).
View source
# displayModes
function displayModes()
Implements the `displayModes` operation for `miniquake.platform.win32` (display modes).
View source
# getGammaRamp
function getGammaRamp()
Return gamma ramp.
View source
# hasFocus
function hasFocus()
Report whether focus.
View source
# height
function height()
Implements the `height` operation for `miniquake.platform.win32` (height).
View source
# inputEventPop
function inputEventPop()
Implements the `inputEventPop` operation for `miniquake.platform.win32` (input event pop).
View source
# inputTestPush
function inputTestPush(eventType, code, value)
Implements the `inputTestPush` operation for `miniquake.platform.win32` (input test push).
| Parameter | Type | Default | Description |
|---|
eventType | dynamic | — | The event type input consumed by `inputTestPush`. |
code | dynamic | — | The code input consumed by `inputTestPush`. |
value | dynamic | — | Value consumed by `inputTestPush`. |
View source
# joyAxis
function joyAxis(axis)
Implements the `joyAxis` operation for `miniquake.platform.win32` (joy axis).
| Parameter | Type | Default | Description |
|---|
axis | dynamic | — | The axis input consumed by `joyAxis`. |
View source
# joyButtonCount
function joyButtonCount()
Return joy button count derived from the active module state.
View source
# joyButtons
function joyButtons()
Implements the `joyButtons` operation for `miniquake.platform.win32` (joy buttons).
View source
# joyHasPov
function joyHasPov()
Implements the `joyHasPov` operation for `miniquake.platform.win32` (joy has pov).
View source
# joyPov
function joyPov()
Implements the `joyPov` operation for `miniquake.platform.win32` (joy pov).
View source
# joyRead
function joyRead()
Implements the `joyRead` operation for `miniquake.platform.win32` (joy read).
View source
# joyStartup
function joyStartup()
Implements the `joyStartup` operation for `miniquake.platform.win32` (joy startup).
View source
# joyWarriorCurve
function joyWarriorCurve(rawValue)
Implements the `joyWarriorCurve` operation for `miniquake.platform.win32` (joy warrior curve).
| Parameter | Type | Default | Description |
|---|
rawValue | dynamic | — | The raw value input consumed by `joyWarriorCurve`. |
View source
# keyDown
function keyDown(virtualKey)
Implements the `keyDown` operation for `miniquake.platform.win32` (key down).
| Parameter | Type | Default | Description |
|---|
virtualKey | dynamic | — | The virtual key input consumed by `keyDown`. |
View source
# keyPressed
function keyPressed(virtualKey)
Implements the `keyPressed` operation for `miniquake.platform.win32` (key pressed).
| Parameter | Type | Default | Description |
|---|
virtualKey | dynamic | — | The virtual key input consumed by `keyPressed`. |
View source
# keySnapshot
function keySnapshot(downStates, pressedStates, queryMask)
Capture the requested keyboard levels and complete edge table in one call.
| Parameter | Type | Default | Description |
|---|
downStates | dynamic | — | The down states input consumed by `keySnapshot`. |
pressedStates | dynamic | — | The pressed states input consumed by `keySnapshot`. |
queryMask | dynamic | — | The query mask input consumed by `keySnapshot`. |
View source
# makeCurrent
function makeCurrent()
Create and initialize current.
View source
# minimized
function minimized()
Implements the `minimized` operation for `miniquake.platform.win32` (minimized).
View source
# mouseButtons
function mouseButtons()
Implements the `mouseButtons` operation for `miniquake.platform.win32` (mouse buttons).
View source
# mouseDelta
function mouseDelta()
Implements the `mouseDelta` operation for `miniquake.platform.win32` (mouse delta).
View source
# mouseWheel
function mouseWheel()
Implements the `mouseWheel` operation for `miniquake.platform.win32` (mouse wheel).
View source
# poll
function poll()
Implements the `poll` operation for `miniquake.platform.win32` (poll).
View source
# RENDER_DIRECT3D9
const RENDER_DIRECT3D9 = 1
Defines the render direct3 d9 value used by `miniquake.platform.win32`.
View source
# RENDER_OPENGL
const RENDER_OPENGL = 0
Defines the render opengl value used by `miniquake.platform.win32`.
View source
# RENDER_VULKAN
const RENDER_VULKAN = 2
Defines the render vulkan value used by `miniquake.platform.win32`.
View source
# renderer
function renderer()
Renders er for `miniquake.platform.win32`.
View source
# rendererAvailable
function rendererAvailable(backend)
Report whether renderer available holds for the active state.
| Parameter | Type | Default | Description |
|---|
backend | dynamic | — | The backend input consumed by `rendererAvailable`. |
View source
# resizeClient
function resizeClient(widthValue, heightValue)
Implements the `resizeClient` operation for `miniquake.platform.win32` (resize client).
| Parameter | Type | Default | Description |
|---|
widthValue | dynamic | — | The width value input consumed by `resizeClient`. |
heightValue | dynamic | — | The height value input consumed by `resizeClient`. |
View source
# restoreDisplayMode
function restoreDisplayMode()
Return restore display mode derived from the active module state.
View source
# selectRenderer
function selectRenderer(backend)
Update subsystem configuration for select renderer.
| Parameter | Type | Default | Description |
|---|
backend | dynamic | — | The backend input consumed by `selectRenderer`. |
View source
# setGammaRamp
function setGammaRamp(ramp)
Update module state for gamma ramp.
| Parameter | Type | Default | Description |
|---|
ramp | dynamic | — | The ramp input consumed by `setGammaRamp`. |
View source
# setTitle
function setTitle(title)
Update module state for title.
| Parameter | Type | Default | Description |
|---|
title | dynamic | — | The title input consumed by `setTitle`. |
View source
# showCursor
function showCursor(show)
Implements the `showCursor` operation for `miniquake.platform.win32` (show cursor).
| Parameter | Type | Default | Description |
|---|
show | dynamic | — | The show input consumed by `showCursor`. |
View source
# sleep
function sleep(milliseconds)
Implements the `sleep` operation for `miniquake.platform.win32` (sleep).
| Parameter | Type | Default | Description |
|---|
milliseconds | dynamic | — | The milliseconds input consumed by `sleep`. |
View source
# swap
function swap()
Convert data for swap.
View source
# testDisplayMode
function testDisplayMode(widthValue, heightValue, bpp, frequency)
Verify display mode against the expected Quake behavior.
| Parameter | Type | Default | Description |
|---|
widthValue | dynamic | — | The width value input consumed by `testDisplayMode`. |
heightValue | dynamic | — | The height value input consumed by `testDisplayMode`. |
bpp | dynamic | — | The bpp input consumed by `testDisplayMode`. |
frequency | dynamic | — | The frequency input consumed by `testDisplayMode`. |
View source
# textPop
function textPop()
Implements the `textPop` operation for `miniquake.platform.win32` (text pop).
View source
# ticks
function ticks()
Implements the `ticks` operation for `miniquake.platform.win32` (ticks).
View source
# updateClipCursor
function updateClipCursor()
Update module state for clip cursor.
View source
# width
function width()
Implements the `width` operation for `miniquake.platform.win32` (width).
View source
# windowX
function windowX()
Implements the `windowX` operation for `miniquake.platform.win32` (window x).
View source
# windowY
function windowY()
Implements the `windowY` operation for `miniquake.platform.win32` (window y).
View source