Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
--------------------------------------------------------------------------------
_____ _ _ _____ _ _ _____ _____
| _ | | | | _ | | | | ___| ___|
| |_| | |_| | | | | | | | |___| |___
| ___| _ | | | | | | |___ | ___|
| | | | | | |_| | |_| |___| | |___
|_| |_| |_|_____|_____|_____|_____|
--------------------------------------------------------------------------------
Phouse, also known as the phone mouse, is an android application which can
connect to a computer running a phouse server over wifi and act as a mouse.
This allows for remote control of the computer through a socket connection.
Unlike other android mouse applications, this one moves the mouse through
2-axis accelerometer input, with adjustable sensitivity and left/right click
functionality. Furthermore, the point around which the device detects rotation
can be set using the calibrate button.
--------------------------------------------------------------------------------
Setup
First, place both the computer and Android device on the same network.
On Computer/Server:
(need javac setup)
cd phouseServer/src/
javac driver.java
java driver
Note the socket requested of the user for future reference.
On Android device:
Download APK, place on phone, and use a file manager to run it (app-debug.apk)
For server IP, enter the IP address of the computer.
For socket, enter the socket noted above.
Press Connect
The mouse will immediately begin moving based on tilts.
Tilt the device forwards/backwards and side to side to move the cursor around.
Adjust the sensitivity to a speed of your liking.
The left/right mouse buttons can be held down like a normal mouse's buttons.
Calibrate zeros the speed of the cursor at any given rotation of the device.
--------------------------------------------------------------------------------
Changelog:
11-02-16
PhouseServer
-Extrapolates mouse input now for a much smoother feel.
-Now allows for other mouse inputs to influence position of mouse.
10-17-16
PhouseServer
-Added fps counter.
PhouseClient
-Updated application launcher icon
-Fixed socket timeout issues, now times out after 1 second.
-Added zero movement area, adjustable with slider.
-Changed range of sensitivity bar (0-1000).
-Click buttons now change color while pressed.
-Toast notifications appear lower so calibrate button is unobstructed.
-Server IP and Socket fields are now as large as the screen.
10-02-16
PhouseServer
-User-defined socket connection
-Tracks mouse location by itself to prevent truncation of floats
-Keeps track of display width/height as well to prevent runoff
-Handles disconnections a bit more gracefully, also now has way for client
to shutdown server.
PhouseClient
-Added sensitivity slider
-Added editText fields for server IP and socket
-Added calibration button
-Fixed crash issues when trying to connect to invalid IPs and sockets.
10-01-16
PhouseServer
-Set up fixed socket connection
-Can take strings from clients and call java Robot functions accordingly
PhouseClient
-Added buttons for left/right click, connecting/disconnecting with server
-Added onTouch and onClick event listeners which allow for tracking
presses as well as releases for realistic mouse inputs.