aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Script.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-14 13:27:08 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-14 13:27:08 +0100
commit438f5301d8b14fa53fef73a4356f4a5171ac91af (patch)
treee3b0e4389c620a9b1d7224a7c390293c2ea01321 /src/crepe/api/Script.h
parent644c1ee1a1f109ae293cc6b09fafe8ba8b448ff3 (diff)
parenta03f90fa9bcbd5a0c5b5d1f2e50df183c7c3640c (diff)
more WIP demo
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