phoenix said:Middle button click? Or scroll wheel up/down?
For the former, if you are using moused, you can add -3 to moused_flags in /etc/rc.conf. After reloading moused, pressing both mouse buttons at the same time will register as a middle button click.
For the latter, just use the Page Up and Page Down buttons on the keyboard.![]()
shuxuef said:Thanks, phoenix. I meant the latter, simulating/emulating the scroll action of the wheel. More exactly, I wish I could translate the y-axis movement into z-axis movement, after probably adding a CTRL key.
As far as I know, moused doesn't work in X, it only works in text-based consoles.
Using PgUp/PgDn is not an ideal solution; first, it cannot bring the desired window into focus,
second, it's still not working under some circumstances, e.g. the zooming function in some applications.
Have a look at moused(8) and the -V, -H, -U, and -L arguments. Sounds like you want virtual scrolling, which works such that when you hold down the middle button moused translates your Y-axis into the Z-axis (buttons 4 and 5).shuxuef said:I wish I could translate the y-axis movement into z-axis movement, after probably adding a CTRL key.
aragon said:Have a look at moused(8) and the -V, -H, -U, and -L arguments. Sounds like you want virtual scrolling, which works such that when you hold down the middle button moused translates your Y-axis into the Z-axis (buttons 4 and 5).
Not without modifying moused's source.shuxuef said:Is it possible not to use the middle button at all, e.g. on a 2-button mouse? Is it possible to emulate the middle wheel action using the keyboard? (I don't want to use NumLock, my NumLock is not working anyway.) Thanks!