Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/profezzorn/ProffieOS
Browse files Browse the repository at this point in the history
  • Loading branch information
profezzorn committed Sep 23, 2024
2 parents 2c60282 + 78f2c86 commit 815fca1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion props/detonator.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Detonator : public PROP_INHERIT_PREFIX PropBase {
bool powered_ = false;
void SetPower(bool on) { powered_ = on; }
#else
constexpr bool powered_ = true;
bool powered_ = true;
void SetPower(bool on) {}
#endif

Expand Down
12 changes: 6 additions & 6 deletions props/saber_fett263_buttons.h
Original file line number Diff line number Diff line change
Expand Up @@ -5788,7 +5788,7 @@ SaberFett263Buttons() : PropBase() {}
#endif
// Gesture Controls (not button specific)
case EVENTID(BUTTON_NONE, EVENT_TWIST_RIGHT, MODE_ON):
if (wav_player && wav_player->isPlaying()) {
if (menu_ && wav_player && wav_player->isPlaying()) {
current_menu_angle_ = fusor.angle2();
return false;
}
Expand All @@ -5809,7 +5809,7 @@ SaberFett263Buttons() : PropBase() {}
return false;

case EVENTID(BUTTON_NONE, EVENT_TWIST_LEFT, MODE_ON):
if (wav_player && wav_player->isPlaying()) {
if (menu_ && wav_player && wav_player->isPlaying()) {
current_menu_angle_ = fusor.angle2();
return false;
}
Expand All @@ -5831,7 +5831,7 @@ SaberFett263Buttons() : PropBase() {}
return false;

case EVENTID(BUTTON_NONE, EVENT_TWIST_RIGHT, MODE_OFF):
if (wav_player && wav_player->isPlaying()) {
if (menu_ && wav_player && wav_player->isPlaying()) {
current_menu_angle_ = fusor.angle2();
return false;
}
Expand All @@ -5842,7 +5842,7 @@ SaberFett263Buttons() : PropBase() {}
return false;

case EVENTID(BUTTON_NONE, EVENT_TWIST_LEFT, MODE_OFF):
if (wav_player && wav_player->isPlaying()) {
if (menu_ && wav_player && wav_player->isPlaying()) {
current_menu_angle_ = fusor.angle2();
return false;
}
Expand Down Expand Up @@ -5921,7 +5921,7 @@ SaberFett263Buttons() : PropBase() {}
return false;

case EVENTID(BUTTON_NONE, EVENT_TWIST_RIGHT, MODE_OFF | BUTTON_POWER):
if (wav_player && wav_player->isPlaying()) {
if (menu_ && wav_player && wav_player->isPlaying()) {
current_menu_angle_ = fusor.angle2();
return false;
}
Expand Down Expand Up @@ -5954,7 +5954,7 @@ SaberFett263Buttons() : PropBase() {}
return false;

case EVENTID(BUTTON_NONE, EVENT_TWIST_LEFT, MODE_OFF | BUTTON_POWER):
if (wav_player && wav_player->isPlaying()) {
if (menu_ && wav_player && wav_player->isPlaying()) {
current_menu_angle_ = fusor.angle2();
return false;
}
Expand Down

0 comments on commit 815fca1

Please sign in to comment.