-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
…ious version of nme, value 3 and 4 as value.
- Loading branch information
There are no files selected for viewing
4 comments
on commit 267c456
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently I included the mouse constrain and position in this commit.
Note : This doesn't appear to be working properly with SDL2 yet, SDL_SetRelativeMouseMode (SDL_TRUE) is meant to hide, constrain, and reset the cursor each frame (the intended behavior) but it appears that SDL_FALSE provides this instead... passing true causes the mouse to be constrained to the window borders and set to invisible. It should remove the behavior entirely instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@codeservice are you sure that's how it worked before? I was using the mouse wheel in my GUI and in a couple games and I mimicked existing behavior, if so that's cool! - I just always only saw them on down event
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great
Should be: etMouseUp not etMouseDown:
Event mouse(etMouseUp, _x, _y, event_dir);
Check Stage.hx:
...
else if (inType == MouseEvent.MOUSE_UP)
{
if (button > 2)
{
type = MouseEvent.MOUSE_WHEEL;
wheel = button == 3 ? 1 : -1;
...