Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to do scroll ? #5

Open
iKK001 opened this issue Aug 16, 2024 · 0 comments
Open

How to do scroll ? #5

iKK001 opened this issue Aug 16, 2024 · 0 comments

Comments

@iKK001
Copy link

iKK001 commented Aug 16, 2024

How can I do scrolling with this library ?

I tried to estimate how the code would look like for scrolling. But I failed miserably since I do not have enough knowledge of what is really going on under the hood.

Here my trial (that does not work yet):

void BleAbsMouse::scroll(int8_t v_Wheel, int8_t h_Wheel)
{
  this->isPressed = false;
  if (this->isConnected())
  {
    uint8_t m[5];
    m[0] = 0;
    m[1] = 0;
    m[2] = 0;
    m[3] = v_Wheel;
    m[4] = h_Wheel;
    this->inputAbsMouse->setValue(m, 5);
    this->inputAbsMouse->notify();
  }
}

How would I have to call setValue in order to make a vertical up/down scroll. And how for left/right scroll ?

@iKK001 iKK001 changed the title How to do scroll How to do scroll ? Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant