works on gdi too
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@279 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
9d3dcf1e1a
commit
3f97e021b2
4 changed files with 50 additions and 4 deletions
|
|
@ -172,6 +172,10 @@ void MwLLNextEvent(MwLL handle) {
|
|||
p.button = MwLLMouseMiddle;
|
||||
} else if(ev.xbutton.button == Button3) {
|
||||
p.button = MwLLMouseRight;
|
||||
} else if(ev.xbutton.button == Button4) {
|
||||
p.button = MwLLMouseWheelUp;
|
||||
} else if(ev.xbutton.button == Button5) {
|
||||
p.button = MwLLMouseWheelDown;
|
||||
}
|
||||
|
||||
MwLLDispatch(handle, down, &p);
|
||||
|
|
@ -187,6 +191,10 @@ void MwLLNextEvent(MwLL handle) {
|
|||
p.button = MwLLMouseMiddle;
|
||||
} else if(ev.xbutton.button == Button3) {
|
||||
p.button = MwLLMouseRight;
|
||||
} else if(ev.xbutton.button == Button4) {
|
||||
p.button = MwLLMouseWheelUp;
|
||||
} else if(ev.xbutton.button == Button5) {
|
||||
p.button = MwLLMouseWheelDown;
|
||||
}
|
||||
|
||||
MwLLDispatch(handle, up, &p);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue