Skip to content

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
skhaz committed Jan 6, 2025
1 parent 96ac6f2 commit 288dd00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/scriptengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,21 +245,21 @@ void framework::scriptengine::run() {
return e.velocity();
}

double get_x() const {
double_t get_x() const {
return e.velocity().x();
}

void set_x(double x) {
void set_x(double_t x) {
auto velocity = e.velocity();
velocity.set_x(x);
e.set_velocity(velocity);
}

double get_y() const {
double_t get_y() const {
return e.velocity().y();
}

void set_y(double y) {
void set_y(double_t y) {
auto velocity = e.velocity();
velocity.set_y(y);
e.set_velocity(velocity);
Expand Down
2 changes: 1 addition & 1 deletion src/statemanager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ class statemanager : public input::eventreceiver {
virtual void on_joystickaxismotion(int who, const input::joystickaxisevent &event) noexcept;

private:
std::unordered_map<uint8_t, std::unordered_map<std::variant<input::joystickevent>, bool>> _state;
std::unordered_map<int8_t, std::unordered_map<std::variant<input::joystickevent>, bool>> _state;
};
}

0 comments on commit 288dd00

Please sign in to comment.