Skip to content

MTY_AppSetHotkey

chrisd1100 edited this page Aug 25, 2022 · 1 revision

Set a hotkey combination.

Globally scoped hotkeys are only available on Windows.

void MTY_AppSetHotkey(
    MTY_App * ctx,
    MTY_Scope scope,
    MTY_Mod   mod,
    MTY_Key   key,
    uint32_t  id
);

Parameters

ctx (MTY_App *)

The MTY_App.

scope (MTY_Scope)

Global or local scope.

mod (MTY_Mod)

Hotkey modifier.

key (MTY_Key)

Hotkey key.

id (uint32_t)

An id associated with the hotkey that comes back when the key combination is pressed via an MTY_EVENT_HOTKEY.

Platform support

Windows   macOS   Android   Linux   Web  

See also

Module: App

Clone this wiki locally