Giter Club home page Giter Club logo

mobile-gamepad's People

Contributors

sbidolach avatar tombl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mobile-gamepad's Issues

Problem install

pi@RetroPi:~/mobile-gamepad $ sudo grunt start
Running "clean:dist" (clean) task

1 path cleaned.

Running "copy:public" (copy) task
Created 1 directory, copied 3 files

Running "copy:client" (copy) task
Created 3 directories, copied 10 files

Running "express:dev" (express) task
Starting background Express server
/home/pi/mobile-gamepad/node_modules/bindings/bindings.js:121
throw e;
^

Error: libnode.so.64: cannot open shared object file: No such file or directory
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1057:18)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at bindings (/home/pi/mobile-gamepad/node_modules/bindings/bindings.js:112:48)
at Object. (/home/pi/mobile-gamepad/node_modules/ioctl/index.js:1:32)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
Stopping Express server

Running "watch" task
Waiting...
pi@RetroPi:~/mobile-gamepad $

Analog Input

Sorry if this is the wrong way to bring up issues:

I ran the commands to get input data from the Mobile Gamepad:
sudo apt-get install input-utils
sudo lsinput
sudo input-events [number]

When using the dpad i noticed that only 2 events show up before the analog stick stops responding:

//The X and Y values are dependent on the direction I press to test the analog input

EV_ABS ABS_Y 127
EV_SYN code=0 value=0
EV_ABS ABS_X 255
EV_SYN code=0 value=0

I've tested this and received the same errors from from chrome on android and chrome from windows 10.

How do you use this on Ubuntu install?

I installed retropie on my pc so I could play some of the more demanding games. I'm just wondering how to connect to it. I tried using my pc's ip address but it doesn't do anything.

Error When installing

Pretty straightforward..


npm install
npm WARN deprecated [email protected]: This version is no longer maintained. Please upgrade to the latest version.
npm WARN deprecated [email protected]: This version is no longer maintained. Please upgrade to the latest version.
npm WARN deprecated [email protected]: This version is no longer maintained. Please upgrade to the latest version.

> [email protected] preinstall /home/pi/mobile-gamepad/node_modules/v8-profiler
> node -e 'process.exit(0)'


> [email protected] preinstall /home/pi/mobile-gamepad/node_modules/v8-debug
> node -e 'process.exit(0)'


> [email protected] install /home/pi/mobile-gamepad/node_modules/ioctl
> node-gyp rebuild

gyp ERR! clean error
gyp ERR! stack Error: EACCES: permission denied, rmdir 'build'
gyp ERR! System Linux 4.14.30-v7+
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/mobile-gamepad/node_modules/ioctl
gyp ERR! node -v v10.15.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN [email protected] requires a peer of grunt@~0.4.2 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-01-06T01_21_26_329Z-debug.log

Certificate for Website Not Updated

Hi,

I am trying to update my Retro Game Engine that I got to play retro games. It gets to the point where it is updating the mobile-gamepad and it says the certificate is not updated for the site from which it is downloading.

Can anyone please help?

Thanks

Libreelec

Is there a way to use this in libreelec.
Or does anyone know a similar solution to libreelec?

Sudo grant start

Hi,
When I run "sudo grant start" I get the following error -

/Use/bin/env node: no such file or directory

Any ideas?

Thanks

Crash on gamepad input

I am able to get my iPhone to successfully connect to the server, but as soon as I press a button or use the joystick, I receive this error. I should note that I am using Ubuntu as a test before using this on RetroPie.

Running "clean:dist" (clean) task
\>> 1 path cleaned.

Running "copy:public" (copy) task
Created 1 directory, copied 3 files

Running "copy:client" (copy) task
Created 3 directories, copied 10 files

Running "express:dev" (express) task
Starting background Express server
Express server listening on port 8888

Running "watch" task
Waiting...
gamepad connected
connect gamepad
hello input -> 1
fs.js:658
    return binding.writeBuffer(fd, buffer, offset, length, position);
                   ^

Error: EINVAL: invalid argument, write
    at Error (native)
    at Object.fs.writeSync (fs.js:658:20)
    at null.<anonymous> (/home/max/Programs/mobile-gamepad/server/src/gamepad.js:139:20)
    at null.<anonymous> (/home/max/Programs/mobile-gamepad/server/src/gamehub.js:36:30)
    at Socket.<anonymous> (/home/max/Programs/mobile-gamepad/server/server.js:43:15)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at /home/max/Programs/mobile-gamepad/node_modules/socket.io/lib/socket.js:501:12
    at nextTickCallbackWith0Args (node.js:420:9)
    at process._tickCallback (node.js:349:13)
Stopping Express server

uinput not found

Whenever i try to execute it(sudo grunt start), it complains about not finding uinput. I installed uninput manually(npm i uinput) but it still doesnt work.
logs:
` Running "clean:dist" (clean) task

1 path cleaned.

Running "copy:public" (copy) task
Created 1 directory, copied 3 files

Running "copy:client" (copy) task
Created 3 directories, copied 10 files

Running "express:dev" (express) task
Starting background Express server
internal/modules/cjs/loader.js:638
throw err;
^

Error: Cannot find module 'uinput'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/home/pi/mobile-gamepad/server/src/gamepad.js:2:14)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
Stopping Express server

Running "watch" task
Waiting... `

no listen on port 8888

Installed via experimental packages blabla in retropie setup
I see the process app.sh started with ps ax

i also see port 35729 with netstat but no port 8888

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.