Macaw OS C reference

Function modkey

#include <macaw.h>
int modkey(char *buf, int size);

Gives the name of the key people hold for shortcuts, so your help text can name the right one.

Parameters

bufchar *
Where the name goes: "Cmd" on a Mac, "Ctrl" everywhere else.
sizeint
How many bytes buf holds. A name that doesn't fit is cut short.

Returns int

The name's whole length.

In The system, with platform, ismac, memory, sys_version, sys_fps, sys_display, sys_volume, sys_screenshot, sys_title, sys_cursor, sys_clipboard, sys_setclipboard.