InputEventKey set_keycode() not working properly for mouse buttons?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By podpod

Here is my code:

func define_keybindings():

# directional keys
var _left =
InputMap.action_add_event("ui_left", _left)
var _right =
InputMap.action_add_event("ui_right", _right)
var _forward =
InputMap.action_add_event("ui_up", _forward)
var _back =
InputMap.action_add_event("ui_down", _back)

# mouse wheel
var _zoom_in =
InputMap.action_add_event("ui_page_up", _zoom_in)
var _zoom_out =
InputMap.action_add_event("ui_page_down", _zoom_out)

It works perfectly for the WASD keys but it completely ignores the mouse wheel.
ui_page_up and ui_page_down are default actions which come with PAGE_UP and PAGE_DOWN predefined, and those work as intended.

Any insights appreciated, thank you.

:bust_in_silhouette: Reply From: Wakatta

Wow serious Dejavu!!!