2021-07-16 11:36:31 -07:00
|
|
|
//! Key and button actions
|
|
|
|
|
2021-07-16 11:33:46 -07:00
|
|
|
const c = @cImport(@cInclude("GLFW/glfw3.h"));
|
|
|
|
|
2021-07-16 11:52:38 -07:00
|
|
|
/// The key or mouse button was released.
|
2021-07-16 11:33:46 -07:00
|
|
|
pub const release = C.GLFW_RELEASE;
|
|
|
|
|
2021-07-16 11:52:38 -07:00
|
|
|
/// The key or mouse button was pressed.
|
2021-07-16 11:33:46 -07:00
|
|
|
pub const press = C.GLFW_RELEASE;
|
|
|
|
|
2021-07-16 11:52:38 -07:00
|
|
|
/// The key was held down until it repeated.
|
2021-07-16 11:33:46 -07:00
|
|
|
pub const repeat = C.GLFW_REPEAT;
|