-
Notifications
You must be signed in to change notification settings - Fork 25
/
README
32 lines (21 loc) · 1.44 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
1.To Start a connection , Make sure your pc is the "ONLY" device paired to your phone and bluetooth is turned on in your phone.
2.Compile and run blumouse-server.c
(Before that you have to install the following packages :
1.libxtst & libxtst-dev
2.libbluetooth & libbluetooth-dev )
Compile using the following command:
gcc -o blumouse-server blumouse-server.c -lbluetooth -L/usr/X11R6/lib -lX11 -lXtst
Run from terminal using ./blumouse-server.
3.Next install and open the app (blumouse) in your phone.(This step should be done only after blumouse-server is running in terminal.)
4.Now after you run the app , you'll get two messages :
Accepted connection from xx.xx.xx.xx.xx.xx
Connection Started :)
If you get these two messages , that means your phone is ready to use as a mouse :)
Else, exit from the blumouse-server process, start in again. now relaunch the app in your phone.
Instructions to use:
Use the black portion of the screen as a touch pad.
The two buttons below are left and right clicks.
If you press and hold any of the button it means that you are holding down the mousebutton .
If you want to toggle the button's state ,then again press and hold it to bring back to normal
Caution : be careful not to tilt phone (in phones which auto align to gravity) because then, the socket will be reset..
**PS: You can change the sensitivity , and the resolution of your screen in the blumouse-server.c file (they are globals) **