Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hanxi/mobiletouch
移动触控板的安卓客户端,将安卓移动设备作为触控板,发送指令到服务器
https://github.com/hanxi/mobiletouch
Last synced: 6 days ago
JSON representation
移动触控板的安卓客户端,将安卓移动设备作为触控板,发送指令到服务器
- Host: GitHub
- URL: https://github.com/hanxi/mobiletouch
- Owner: hanxi
- License: mit
- Created: 2014-06-04T12:05:56.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-05T04:14:18.000Z (over 10 years ago)
- Last Synced: 2023-03-15T02:32:48.869Z (over 1 year ago)
- Language: Java
- Size: 180 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
mobiletouch
===========移动触控板的安卓客户端,将安卓移动设备作为触控板,发送指令到服务器
----
使用http协议发送指令,通过url参数确定命令。
url = "http://192.168.16.14:8080/"
----
## 双指滑动
* 滑动方向
MOVE_LEFT = 0;
MOVE_RIGHT = 1;
MOVE_UP = 2;
MOVE_DOWN = 3;* 向左:发送指令
> cmd = doublemove?direction=0&distance=724> doublemove 标识双指移动
> direction 表示方向
> distance 标识滑动距离
* 向右
> cmd = doublemove?direction=1&distance=724* 向上
> cmd = doublemove?direction=2&distance=724* 向下
> cmd = doublemove?direction=3&distance=724## 服务器搭建
* https://github.com/hanxi/mobiletouch_pyhttp