Made SoftKbd more usable with a mouse.
svn-id: r16004
This commit is contained in:
parent
846f520ed6
commit
9f5bd8510d
6 changed files with 39 additions and 4 deletions
|
@ -68,6 +68,10 @@ int handleInput(struct mapledev *pad, int &mouse_x, int &mouse_y,
|
|||
|
||||
mouse_x += pad->cond.mouse.axis1;
|
||||
mouse_y += pad->cond.mouse.axis2;
|
||||
|
||||
if(inter)
|
||||
inter->mouse(mouse_x, mouse_y);
|
||||
|
||||
pad->cond.mouse.axis1 = 0;
|
||||
pad->cond.mouse.axis2 = 0;
|
||||
} else if(pad->func & MAPLE_FUNC_KEYBOARD) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue