Skip to content

Commit

Permalink
what should i do for this?
Browse files Browse the repository at this point in the history
  • Loading branch information
PA055 committed Sep 4, 2024
1 parent 8dbb732 commit 23c4bbf
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion include/gamepad/controller.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <cstdint>
#include <functional>
#include <memory>
#include <optional>
#include <vector>
#include <sys/types.h>
#ifndef PROS_USE_SIMPLE_NAMES
Expand Down Expand Up @@ -57,8 +58,18 @@ class Controller {
* @note Create a separate instance for each task.
*/
void update();

/**
* Add a screen to the sceen update loop that can update the controller's screen
*
* @param screen the `AbstractScreen` to
*/
void add_screen(std::shared_ptr<AbstractScreen> screen);
void remove_screen(); // TODO: Find a good way to access the screen to remove

// TODO: Change this to be a better access point
std::vector<std::shared_ptr<AbstractScreen>> get_screens();
std::vector<std::shared_ptr<AbstractScreen>> get_screens(uint priority);
std::vector<std::shared_ptr<AbstractScreen>> get_screens(uint min_priority, uint max_priority);
/**
* Get the state of a button on the controller.
* @param button Which button's state you want.
Expand Down

0 comments on commit 23c4bbf

Please sign in to comment.