MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ to_glfw_key()

MAYAFLUX_API int MayaFlux::Core::to_glfw_key ( IO::Keys  key)
noexcept

Convert a MayaFlux Keys enum to GLFW key code.

Reverse mapping from our Keys enum back to GLFW key codes. Used when you need to interface with GLFW or serialize key bindings.

Parameters
keyThe IO::Keys value to convert
Returns
The corresponding GLFW key code

Definition at line 20 of file KeyMapping.cpp.

21{
22 return static_cast<int>(key);
23}