Kanzi 4.1.0
kanzi::emscripten Namespace Reference

Classes

class  DefaultEmscriptenGraphicsOutput
 Class representing a default Emscripten graphics output. More...
 
struct  DefaultEmscriptenGraphicsOutputProperties
 The structure that represents the default emscripten graphics output properties. More...
 

Functions

LogicalKey keyCodeToLogicalKey (unsigned long keyCode, unsigned long location)
 Converts a JavaScript keyCode to a Kanzi LogicalKey.
 

Function Documentation

◆ keyCodeToLogicalKey()

LogicalKey kanzi::emscripten::keyCodeToLogicalKey ( unsigned long keyCode,
unsigned long location )

Converts a JavaScript keyCode to a Kanzi LogicalKey.

Parameters
keyCodeThe JavaScript keyCode from a keyboard event.
locationThe DOM KeyboardEvent.location (0=standard, 1=left, 2=right, 3=numpad).
Returns
The corresponding LogicalKey.