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!?
Hung Bui -- I get the mouse pointer moving to 4diff places on click of these buttons but that necessarily doesn't give me a detailed view of this function!
The function is very simple mouse_movement_send(int16_t x_delta, int16_t y_delta) . You provide x_delta, y_delta and you call the function, the mouse will move to the left x pixel on the horizontal and up y pixel vertically. If you use negative value, you will move in opposite direction.
I'm not sure what else you are asking for.
So, is the x and y delta values dependent upon the resolution of the screen!?
No, it's not dependent upon the resolution of the screen. But Windows may scale it up by using mouse-acceleration.
If you want absolute position, you may want to look for "mouse absolute position" on internet, there should be a solution on how to configure HID report of the mouse for that.
Hi,Hung Bui:
I was amazing: What is the deference between boot mode and report mode?When in report mode ,it can't reach the function "ble_hids_boot_mouse_inp_rep_send()" ,It only can reach the fuction "ble_hids_inp_rep_send()" instead.