package claudius

  1. Overview
  2. Docs

Module Base.PlatformKeySource

A module that provides platform-specific key handling, based on the Keysdl module.

This module provides a mapping between Claudius's key representation and the backend-specific integer keycodes used by SDL.

Sourceval of_backend_keycode : int -> Key.t

of_backend_keycode keycode converts a backend-specific integer keycode into a corresponding Key.t representation.

Sourceval to_backend_keycode : Key.t -> int

to_backend_keycode key converts a Key.t representation into a backend-specific integer keycode.