MiniQuake

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).

ParameterTypeDefaultDescription
activedynamic—The active input consumed by `activate`.
minimizedValuedynamic—The minimized value input consumed by `activate`.

View source

captureMouse

function captureMouse(enabled)

Implements the `captureMouse` operation for `miniquake.platform.win32` (capture mouse).

ParameterTypeDefaultDescription
enableddynamic—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.

ParameterTypeDefaultDescription
widthValuedynamic—The width value input consumed by `configureDisplayMode`.
heightValuedynamic—The height value input consumed by `configureDisplayMode`.
bppdynamic—The bpp input consumed by `configureDisplayMode`.
frequencydynamic—The frequency input consumed by `configureDisplayMode`.
fullscreendynamic—The fullscreen input consumed by `configureDisplayMode`.
useCurrentdynamic—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).

ParameterTypeDefaultDescription
titledynamic—The title input consumed by `create`.
widthdynamic—Requested width in pixels or data units.
heightdynamic—Requested height in pixels or data units.
fullscreendynamic—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).

ParameterTypeDefaultDescription
eventTypedynamic—The event type input consumed by `inputTestPush`.
codedynamic—The code input consumed by `inputTestPush`.
valuedynamic—Value consumed by `inputTestPush`.

View source

joyAxis

function joyAxis(axis)

Implements the `joyAxis` operation for `miniquake.platform.win32` (joy axis).

ParameterTypeDefaultDescription
axisdynamic—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).

ParameterTypeDefaultDescription
rawValuedynamic—The raw value input consumed by `joyWarriorCurve`.

View source

keyDown

function keyDown(virtualKey)

Implements the `keyDown` operation for `miniquake.platform.win32` (key down).

ParameterTypeDefaultDescription
virtualKeydynamic—The virtual key input consumed by `keyDown`.

View source

keyPressed

function keyPressed(virtualKey)

Implements the `keyPressed` operation for `miniquake.platform.win32` (key pressed).

ParameterTypeDefaultDescription
virtualKeydynamic—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.

ParameterTypeDefaultDescription
downStatesdynamic—The down states input consumed by `keySnapshot`.
pressedStatesdynamic—The pressed states input consumed by `keySnapshot`.
queryMaskdynamic—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.

ParameterTypeDefaultDescription
backenddynamic—The backend input consumed by `rendererAvailable`.

View source

resizeClient

function resizeClient(widthValue, heightValue)

Implements the `resizeClient` operation for `miniquake.platform.win32` (resize client).

ParameterTypeDefaultDescription
widthValuedynamic—The width value input consumed by `resizeClient`.
heightValuedynamic—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.

ParameterTypeDefaultDescription
backenddynamic—The backend input consumed by `selectRenderer`.

View source

setGammaRamp

function setGammaRamp(ramp)

Update module state for gamma ramp.

ParameterTypeDefaultDescription
rampdynamic—The ramp input consumed by `setGammaRamp`.

View source

setTitle

function setTitle(title)

Update module state for title.

ParameterTypeDefaultDescription
titledynamic—The title input consumed by `setTitle`.

View source

showCursor

function showCursor(show)

Implements the `showCursor` operation for `miniquake.platform.win32` (show cursor).

ParameterTypeDefaultDescription
showdynamic—The show input consumed by `showCursor`.

View source

sleep

function sleep(milliseconds)

Implements the `sleep` operation for `miniquake.platform.win32` (sleep).

ParameterTypeDefaultDescription
millisecondsdynamic—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.

ParameterTypeDefaultDescription
widthValuedynamic—The width value input consumed by `testDisplayMode`.
heightValuedynamic—The height value input consumed by `testDisplayMode`.
bppdynamic—The bpp input consumed by `testDisplayMode`.
frequencydynamic—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