mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-25 14:05:57 +00:00
Scroll with the mouse wheel in the game's menus and along the D-pad strips
The wheel did nothing outside the map. Now each notch is one step of the stick a gamepad player would move: in a menu with the game's focus box (the inventory, shops, Options, the save list) the focus moves up or down, and while a D-pad strip (weapons, shields, bows, materials) is held open the choice moves left or right. The strip has no focus box while it is held, so it is found by its open screen, ShortCut_00, as the map is. The wheel now also counts while the cursor is released over the window, where the menus have the pointer. Input scripts take WHEEL lines and a recording writes them, and a script's one-shot MOUSE or WHEEL line goes in at the first poll at or after its tick instead of being lost when a poll skips that tick. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7a37fc3c34
commit
a10c546a06
7 files changed
+127
-37
No files matched your search
@@ -13,8 +13,9 @@ void ikb_pointer_set(float nx, float ny); // moves the pointer there (the wind
|
||||
int ikb_captured(void); // the cursor is captured for the mouse camera
|
||||
void ikb_mouse_take(int32_t *dx, int32_t *dy); // raw mouse motion since the last call, in counts
|
||||
uint32_t ikb_mouse_travel(void); // raw counts the mouse moved in total (|dx| + |dy|), captured or not
|
||||
int32_t ikb_wheel_take(void); // whole wheel notches turned while captured since the last call (+ away
|
||||
// from the player); a high-resolution wheel's part of a notch is kept
|
||||
int32_t ikb_wheel_take(void); // whole wheel notches turned since the last call while the cursor was
|
||||
// captured or over the focused window (+ away from the player); a
|
||||
// high-resolution wheel's part of a notch is kept
|
||||
void ikb_cursor_update(void); // what input_cursor_allowed says may have changed
|
||||
void ikb_menu_closed(void); // the menu closed: a capture that Esc gave up comes back
|
||||
|
||||
|
||||
Reference in new issue
Block a user