mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Record the start of drags
This commit is contained in:
parent
12f7b7904b
commit
1f669609ae
2 changed files with 7 additions and 0 deletions
|
@ -27,6 +27,11 @@ void UIInit(const Atlas *atlas, int uiFont, int buttonImage, int checkOn, int ch
|
|||
}
|
||||
|
||||
void UIUpdateMouse(float x, float y, int buttons) {
|
||||
if ((buttons & 1) && !uistate.mousedown)
|
||||
{
|
||||
uistate.mouseStartX = x;
|
||||
uistate.mouseStartY = y;
|
||||
}
|
||||
uistate.mousex = x;
|
||||
uistate.mousey = y;
|
||||
uistate.mousedown = buttons;
|
||||
|
|
2
ui/ui.h
2
ui/ui.h
|
@ -27,6 +27,8 @@ struct UIState {
|
|||
int mousex;
|
||||
int mousey;
|
||||
int mousedown;
|
||||
int mouseStartX;
|
||||
int mouseStartY;
|
||||
|
||||
int lastx;
|
||||
int lasty;
|
||||
|
|
Loading…
Add table
Reference in a new issue