Hi,
I was wondering if it is possible to create a program that can control mouse movement as well as perform some keyboard button functionality at the same time?
Hi,
I was wondering if it is possible to create a program that can control mouse movement as well as perform some keyboard button functionality at the same time?
Hi Hari,
Yes that is possible. (ex. it is done in the nRFready Smart Remote reference design )
You can use the HID Keyboard and HID Mouse applications as reference, and combine those two.
(for nRF52840, we also have a USB HID Composite Example that shows how to use two HID classes as one composite device)
In the HID mouse example, parsing into function hids_init(), I can see lots of mouse dependent configurations like,
hid_init_obj.is_mouse,
hid_init_obj.inp_rep_count,
hid_init_obj.p_inp_rep_array, so and so
Now am like confused with all these settings. How to deal with these if we are planning to use both?
Hi,
I still haven't tackled the issue. Need help...
Hi Hari,
You would need to add a descriptor in the code.
I would suggest that you begin with the mouse example as reference.
To answer your past question, you would need to make one for keyboard as well.
ble_hids_init_t hids_init_obj_keyboard; ble_hids_init_t hids_init_obj_mouse;
(You could also check out this tutorial, just to give you an idea how to make a custom service)
Hi Martin,
In the HID mouse example, the program makes use of a function
"mouse_movement_sent()"
This function takes in two arguments(horizontal and vertical movement). I was trying to include the mouse button press into this, but doesn't seem to work.