Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
//here is some mouse proc debugging code you can use in a test project to figure out how mouse calls work.
/client
Click(...)
world << "[.....]([args.Join(", ")]) = `[. = ..()]`\n"
MouseDown()
world << "[.....]([args.Join(", ")]) = `[. = ..()]`\n"
MouseUp()
world << "[.....]([args.Join(", ")]) = `[. = ..()]`\n"
MouseDrag()
world << "[.....]([args.Join(", ")]) = `[. = ..()]`\n"
MouseDrop()
world << "[.....]([args.Join(", ")]) = `[. = ..()]`\n"
MouseEntered()
world << "[.....]([args.Join(", ")]) = `[. = ..()]`\n"
MouseExited()
world << "[.....]([args.Join(", ")]) = `[. = ..()]`\n"
MouseMove()
world << "[.....]([args.Join(", ")]) = `[. = ..()]`\n"
MouseWheel()
world << "[.....]([args.Join(", ")]) = `[. = ..()]`\n"
DblClick()
world << "[.....]([args.Join(", ")]) = `[. = ..()]`\n"
/atom
Click(...)
world << "[.....]([args.Join(", ")]) = `[. = ..()]`"
MouseDown()
world << "[.....]([args.Join(", ")]) = `[. = ..()]`"
MouseUp()
world << "[.....]([args.Join(", ")]) = `[. = ..()]`"
MouseDrag()
world << "[.....]([args.Join(", ")]) = `[. = ..()]`"
MouseDrop()
world << "[.....]([args.Join(", ")]) = `[. = ..()]`"
MouseEntered()
world << "[.....]([args.Join(", ")]) = `[. = ..()]`"
MouseExited()
world << "[.....]([args.Join(", ")]) = `[. = ..()]`"
MouseMove()
world << "[.....]([args.Join(", ")]) = `[. = ..()]`"
MouseWheel()
world << "[.....]([args.Join(", ")]) = `[. = ..()]`"
DblClick()
world << "[.....]([args.Join(", ")]) = `[. = ..()]`"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.