Coder Social home page Coder Social logo

cnspica / mobvii Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 75team/mobvii

0.0 2.0 0.0 30.87 MB

将你的手机变成支持手势控制的游戏手柄

License: MIT License

JavaScript 67.00% Java 3.44% CSS 4.51% Objective-C 22.30% C 0.40% Shell 1.81% AppleScript 0.12% C# 0.43%

mobvii's Introduction

介绍

mobvii 是一个开源的工具,可以让手持设备支持通过手势控制PC上的应用

如何玩?

git clone https://github.com/akira-cn/mobvii.git
cd www
python -m SimpleHTTPServer

PC网页访问 http://localhost:8080

手持设备上安装 android(android目录下) 或 ios 客户端(mobvii-app目录下)

先进行手势训练,之后即可以玩啦~

效果演示视频

http://v.youku.com/v_show/id_XNjEwNjY5NzAw.html

高级功能 —— 自己搭建服务器

需要 node.js

npm install ws
cd server
node index.js

修改 www/js/config.js

//改为你自己的服务器的地址
var SEND_WS_URL = 'ws://ws1.androidzh.com:9090'; 
var REC_WS_URL = 'ws://ws2.androidzh.com:9091';

修改 app 下的 conf.js

var CONF = {
	//socket接口地址 - 改为自己的服务器地址
	ws : 'ws://ws1.androidzh.com:9090',
	...
}

重新编译 app,安装到手机上

手势映射表

{
	"r_slash" : "playlist.next",
	"r_slash2" : "playlist.next",
	"r_slash3" : "playlist.next",
	"slash" : "playlist.prev",
	"slash2" : "playlist.prev",
	"slash3" : "playlist.prev",
	"swing" : "player.toggle",
	"swing2" : "player.toggle",
	"swing3" : "player.toggle",
	"circle" : "player.unknown",
	"device_hr" : "player.hr",
	"device_down" : "player.pause",
	"device_font" : "player.play",
	"vertical_u" : "player.mute|1",
	"vertical_d" : "player.mute|0",
	"tilt_left" : "player.v_down",
	"tilt_right" : "player.v_up",
	"unknown" : "player.unknown",
	"up" : "player.up"
}

播放器参数说明

https://github.com/akira-cn/mobvii/wiki/player_cmd

开发团队

akira-cn
qgy18
ivershuo
greengnn

mobvii's People

Contributors

akira-cn avatar

Watchers

Sean avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.