Skip to content

Commit

Permalink
Merge branch 'build-better' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
drzel committed Sep 14, 2024
2 parents bf8820f + 6cb97a2 commit bfaa264
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions csqc/input.qc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ void FO_Menu_Game(float);
// TRUE --> capture input
// FALSE --> pass input on
float(float evtype, float scanx, float chary, float devid) CSQC_InputEvent = {
switch (evtype)
{
case IE_MOUSEDELTA:
if (previewing_sentry) {
sentry_preview.angles_y = anglemod(input_angles_y + (sentry_preview_offset + 180));
}
default:
}

if (fo_hud_editor || fo_hud_menu_active) {
sui_input_event(evtype, scanx, chary, devid);
float menu_mouse = (fo_hud_menu_active && (CurrentMenu.flags & FO_MENU_FLAG_USE_MOUSE));
Expand Down Expand Up @@ -117,11 +126,6 @@ float(float evtype, float scanx, float chary, float devid) CSQC_InputEvent = {
return TRUE;
}
break;
case IE_MOUSEDELTA:
if (previewing_sentry) {
sentry_preview.angles_y = anglemod(input_angles_y + (sentry_preview_offset + 180));
}
default:
}
}

Expand Down

0 comments on commit bfaa264

Please sign in to comment.