Skip to content

Commit

Permalink
reduce bluetooth mouse lag
Browse files Browse the repository at this point in the history
  • Loading branch information
rsn8887 committed Dec 24, 2017
1 parent ff6373a commit 9896327
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/PSP2/video_psp.cpp
Expand Up @@ -1183,7 +1183,7 @@ void VideoInterrupt(void)
uint32 fc = 0xFF8888FF;
static int stick[16] = { -8, -8, -6, -4, -2, -1, -1, 0, 0, 0, 1, 1, 2, 4, 6, 8 };

sceCtrlReadBufferPositive(0, &pad, 1);
sceCtrlPeekBufferPositive(0, &pad, 1);
sceTouchPeek(0, &touch, 1);
buttons = pad.buttons ^ oldButtons; // set if button changed
oldButtons = pad.buttons;
Expand Down Expand Up @@ -1295,9 +1295,9 @@ void VideoInterrupt(void)
{
ADBSetRelMouseMode(true);
int i = 0;
for (int i = 0; i < ret; i++)
{
ADBMouseMoved(m_reports[i].rel_x*2, m_reports[i].rel_y*2);

if (m_reports[0].rel_x || m_reports[0].rel_y) {
ADBMouseMoved(m_reports[0].rel_x*2, m_reports[0].rel_y*2);
}

if (m_reports[i].buttons & 0x1) { //Left mouse button
Expand Down

0 comments on commit 9896327

Please sign in to comment.