X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fscripting%2Fplayer.hpp;h=431573c33f0c032ecb5198656175cb9149794494;hb=c3c41a343669d375aaa674c7f3ac35f08f24703e;hp=5fe871340ad11a2d2925ed43e1492e24c2261c1f;hpb=f2d345c3ccec7743e39df2f59e546ad415257b81;p=supertux.git diff --git a/src/scripting/player.hpp b/src/scripting/player.hpp index 5fe871340..431573c33 100644 --- a/src/scripting/player.hpp +++ b/src/scripting/player.hpp @@ -116,6 +116,16 @@ public: */ virtual void trigger_sequence(std::string sequence_name) = 0; + /** + * Uses a scriptable controller for all user input (or restores controls) + */ + virtual void use_scripting_controller(bool use_or_release) = 0; + + /** + * Instructs the scriptable controller to press or release a button + */ + virtual void do_scripting_controller(std::string control, bool pressed) = 0; + }; }