aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Script.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/api/Script.h')
-rw-r--r--src/crepe/api/Script.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/crepe/api/Script.h b/src/crepe/api/Script.h
index b052f8b..634a459 100644
--- a/src/crepe/api/Script.h
+++ b/src/crepe/api/Script.h
@@ -170,6 +170,16 @@ protected:
//! Retrieve LoopTimerManager reference
LoopTimerManager & get_loop_timer() const;
+ /**
+ * \name Input
+ * \{
+ */
+ //! Get keyboard state
+ const keyboard_state_t & get_keyboard_state() const;
+ //! Get state of specific key
+ bool get_key_state(Keycode key) const noexcept;
+ //! \}
+
private:
/**
* \brief Internal subscribe function