Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To add the mouse wheel event processing for WindowBase #174

Merged
merged 1 commit into from
Nov 23, 2015
Merged

Conversation

llxwj
Copy link
Contributor

@llxwj llxwj commented Nov 23, 2015

Example:

textEdit.MouseWheel().Attach(func (x, y int, button walk.MouseButton) {
    delta := walk.MouseWheelEventDelta(button)
    keyState := walk.MouseWheelEventKeyState(button)
    fmt.Printf("x = %d, y = %d, delta = %d, keyState = %d\n",x, y, delta, keyState)
     //todo other
})

lxn added a commit that referenced this pull request Nov 23, 2015
To add the mouse wheel event processing for WindowBase
@lxn lxn merged commit c31f26c into lxn:master Nov 23, 2015
@lxn
Copy link
Owner

lxn commented Nov 23, 2015

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants