add scroll input capturing
This commit is contained in:
parent
809814577d
commit
bda9abf8b9
@ -133,7 +133,7 @@ enum Input : u32
|
||||
// Mouse
|
||||
MouseMotion = 0x147,
|
||||
|
||||
LeftClick = 0x148, MiddleClick = 0x149, RightClick = 0x14A,
|
||||
LeftClick = 0x148, MiddleClick = 0x149, RightClick = 0x14A, ScrollUp = 0x14B, ScrollDown = 0x14C,
|
||||
};
|
||||
|
||||
alias I = Input;
|
||||
@ -1282,6 +1282,8 @@ HandleEvents(void* window_ptr)
|
||||
case Button1: input = Input.LeftClick; break;
|
||||
case Button2: input = Input.MiddleClick; break;
|
||||
case Button3: input = Input.RightClick; break;
|
||||
case Button4: input = Input.ScrollUp; break;
|
||||
case Button5: input = Input.ScrollDown; break;
|
||||
default: break;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user