can anyone shed any light on the function mouse_movement_send(int16_t x_delta, int16_t y_delta) in latest nrf51 sdk!? how to use it to move pointer on screen n make a left|right click!?
can anyone shed any light on the function mouse_movement_send(int16_t x_delta, int16_t y_delta) in latest nrf51 sdk!? how to use it to move pointer on screen n make a left|right click!?
Which SDK version are you using ? Please have a look at the ble_hids_boot_mouse_inp_rep_send() function, to set a button to be pressed, you set button value to :
0x00 - No buttons pressed
0x01 - Left button pressed
0x02 - Right button pressed
0x03 - Both left and right button pressed
Note that after you press a button, you should release it.
Hi Hung, how are you doing!? I'm using nrF5x SDK 11.
also, I wanted some documentation on this>> mouse_movement_send(int16_t x_delta, int16_t y_delta) functions functionality:
mouse_movement_send only sends mouse movement. You need to look into the code of the function where we call ble_hids_boot_mouse_inp_rep_send(). x_delta and y_delta is the number of horizontal and vertical pixel from the current position of the mouse that the mouse need to move.
thank you! can you show me an example how can I move the pointer around the screen using this function!? I ran a for loop and put the gradually incrementing variable to no avail! couldn't move the pointer!?
What do you see when you follow this instruction and you press the button ?