GamePad to PC Controller [RELEASE/TUTORIAL]

Discussion in 'Wii U - Hacking & Backup Loaders' started by vashgs, Feb 4, 2013.

  1. Plunt

    Plunt GBAtemp Regular

    Member
    5
    Nov 21, 2010
    Canada
    Ontario

    Still having the same issues as last night, everything connects properly but none of the keys I set in the pc.html are responding to the gamepad button presses. I'm definitely using my local ip (which I get from ipconfig each time). The updated files are still doing the same.



    This is what is displayed on any button press from the gamepad in the cmd window:
    Code:
    C:\xampp\htdocs\wiiu>node server.js
    3xX9EYYjxY_pASrhD8Fz connected.
    [TypeError: Property 'updateButtons' of object #<Object> is not a function]
    TypeError: Property 'updateButtons' of object #<Object> is not a function
        at everyone.now.updateHold (C:\xampp\htdocs\wiiu\server.js:17:15)
        at Socket.rfcHandler (C:\xampp\htdocs\wiiu\node_modules\now\lib\user.js:111:
    19)
        at Socket.EventEmitter.emit [as $emit] (events.js:96:17)
        at SocketNamespace.handlePacket (C:\xampp\htdocs\wiiu\node_modules\now\node_
    modules\socket.io\lib\namespace.js:335:22)
        at Manager.onClientMessage (C:\xampp\htdocs\wiiu\node_modules\now\node_modul
    es\socket.io\lib\manager.js:488:38)
        at XHRPolling.Transport.onMessage (C:\xampp\htdocs\wiiu\node_modules\now\nod
    e_modules\socket.io\lib\transport.js:387:20)
        at XHRPolling.HTTPTransport.onData (C:\xampp\htdocs\wiiu\node_modules\now\no
    de_modules\socket.io\lib\transports\http.js:99:10)
        at IncomingMessage.HTTPTransport.handleRequest.req.on.buffer (C:\xampp\htdoc
    s\wiiu\node_modules\now\node_modules\socket.io\lib\transports\http.js:69:12)
        at IncomingMessage.EventEmitter.emit (events.js:93:17)
        at IncomingMessage._emitEnd (http.js:366:10)
    [TypeError: Property 'updateButtons' of object #<Object> is not a function]
    TypeError: Property 'updateButtons' of object #<Object> is not a function
        at everyone.now.updateHold (C:\xampp\htdocs\wiiu\server.js:17:15)
        at Socket.rfcHandler (C:\xampp\htdocs\wiiu\node_modules\now\lib\user.js:111:
    19)
        at Socket.EventEmitter.emit [as $emit] (events.js:96:17)
        at SocketNamespace.handlePacket (C:\xampp\htdocs\wiiu\node_modules\now\node_
    modules\socket.io\lib\namespace.js:335:22)
        at Manager.onClientMessage (C:\xampp\htdocs\wiiu\node_modules\now\node_modul
    es\socket.io\lib\manager.js:488:38)
        at XHRPolling.Transport.onMessage (C:\xampp\htdocs\wiiu\node_modules\now\nod
    e_modules\socket.io\lib\transport.js:387:20)
        at XHRPolling.HTTPTransport.onData (C:\xampp\htdocs\wiiu\node_modules\now\no
    de_modules\socket.io\lib\transports\http.js:99:10)
        at IncomingMessage.HTTPTransport.handleRequest.req.on.buffer (C:\xampp\htdoc
    s\wiiu\node_modules\now\node_modules\socket.io\lib\transports\http.js:69:12)
        at IncomingMessage.EventEmitter.emit (events.js:93:17)
        at IncomingMessage._emitEnd (http.js:366:10)
    
     
  2. vashgs
    OP

    vashgs GBAtemp Regular

    Member
    3
    Feb 1, 2008
    United States
    Your log shows that only one end is connecting. You start the server, then connect from the GamePad side and PC side.
     
  3. Devin

    Devin "Local Hardware Wizard"

    Member
    13
    GBAtemp Patron
    Devin is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Aug 17, 2009
    United States
    The Nexus
    I'm now tinkering with some keyboard mouse emus, so I can possible play a shooter with the gamepad. :yay:
     
  4. vashgs
    OP

    vashgs GBAtemp Regular

    Member
    3
    Feb 1, 2008
    United States
    If you sit tight for a while, I'm adding in the ability to bind either stick to the mouse. Should be up tonight sometime.
     
    Devin likes this.
  5. Devin

    Devin "Local Hardware Wizard"

    Member
    13
    GBAtemp Patron
    Devin is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Aug 17, 2009
    United States
    The Nexus
    *deletes program*
     
  6. Plunt

    Plunt GBAtemp Regular

    Member
    5
    Nov 21, 2010
    Canada
    Ontario
    That's exactly what I'm doing, I'm still getting the same error log no matter what I do. My gamepad doesn't seem to want to interact with the pc side.
     
  7. Devin

    Devin "Local Hardware Wizard"

    Member
    13
    GBAtemp Patron
    Devin is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Aug 17, 2009
    United States
    The Nexus
    Was thinking about how awesome it would be to save preset control schemes. Such as if I wanted to save one for Super Meat boy, one for Pokemon, etc. I know you probably have a high to do list, but it that possible?
     
  8. vashgs
    OP

    vashgs GBAtemp Regular

    Member
    3
    Feb 1, 2008
    United States
    Well, to start, if it doesn't say that two ends have connected in your server-end, you can safely assume that both ends have not connected properly. There is a problem with one end, most likely the PC end. Try changing localhost in the pc.html file to your local ip address instead.
     
  9. vashgs
    OP

    vashgs GBAtemp Regular

    Member
    3
    Feb 1, 2008
    United States
    It's certainly on the list of features to add in.
     
  10. Maxternal

    Maxternal Peanut Gallery Spokesman

    Member
    9
    Nov 15, 2011
    Deep in GBAtemp addiction
    I've been searching a bit for something that can be used for the remote desktop but, of course, existing solutions wouldn't have the gamepad button detection that this has and aren't that customizable to be able to add it.

    Is it possible to embed the webpage generated by an existing solution like ThinVNC into the web page that this generates, even if it is in a frame ... or on a different port, such that we can have both the benefits of this AND an existing web remote desktop program?
     
  11. vashgs
    OP

    vashgs GBAtemp Regular

    Member
    3
    Feb 1, 2008
    United States
    I was actually implementing my own solution for streaming content back to the GamePad. It is a work in progress :)
     
  12. crazyj3ss

    crazyj3ss hmm

    Member
    2
    Jan 20, 2012
    United States
    Ha, you thought I'd tell?
    Would this be possible to use with Project64? D:
     
  13. Devin

    Devin "Local Hardware Wizard"

    Member
    13
    GBAtemp Patron
    Devin is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Aug 17, 2009
    United States
    The Nexus
    Yes, I'd assume so.
     
  14. pwsincd

    pwsincd Garage Flower

    pip Developer
    12
    GBAtemp Patron
    pwsincd is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Dec 4, 2011
    Manchester UK
    This is cool , i know its a WIP , but it would be nice if the pc.html was laid out like the Pad , i was going to mess with this idea only wasnt sure if vashgs had this idea already and may implement it , using the screen of the pad to contain any info needed...

    Why cant the Y button be used btw ?
     
  15. HtheB

    HtheB GBAtemp Advanced Fan

    Member
    8
    May 15, 2006
    Netherlands
    Bize Her Yer Trabzon
    I couldn't get it to work on my Windows 8 (dev. preview)

    The server is running fine, I can also connect to the server with the wiiu gamepad, but the games just don't pick the buttons that I've assigned. (what is "Direct input"?)
    :/
    How can I find out what is wrong? (I've disabled the firewall aswell)
     
  16. nuttyriv3r

    nuttyriv3r Newbie

    Newcomer
    1
    Feb 6, 2013
    United States
    I'm going out on a limb, but I think it's because Y, B and shoulder buttons are tied to the web browser app navigation and screen switching.
     
  17. nuttyriv3r

    nuttyriv3r Newbie

    Newcomer
    1
    Feb 6, 2013
    United States

    I'm having the same problem. Aftering spending an hour or so just figuring out how to establish the correct http port scheme for apache and this app..It appeared everything was fine on the PC (capturing hotkeys) and the server (Gamepad showing number codes for button presses), but when I tried to test it out with say Dolphin or Steam, or just to move the cursor around in notepad...nothing happened. So if there is any enlightenment out there...because I'm feeling a bit 'tarded.
     
  18. pwsincd

    pwsincd Garage Flower

    pip Developer
    12
    GBAtemp Patron
    pwsincd is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Dec 4, 2011
    Manchester UK
    If your seeing the numbers on the wiiu screen you would assume your connection is fine , you did edit the pc.html to reflect your local IP ?
     
  19. HtheB

    HtheB GBAtemp Advanced Fan

    Member
    8
    May 15, 2006
    Netherlands
    Bize Her Yer Trabzon
    Yes, I see the numbers on my gamepad.
    Edit pc.html?

    What do I have to edit?
    http://localhost:8080/nowjs/now.js just works fine if I enter it on my browser....
     
  20. nuttyriv3r

    nuttyriv3r Newbie

    Newcomer
    1
    Feb 6, 2013
    United States
    To set mine up, I had to set Apache to 8082 because it was the first open port available on this machine for some reason. To do so I had to modify the httpd.conf file to listen on 8082 (you don't have to do this if port 80 is open on your PC - mine isn't for some reason).

    Code:
    #Listen 0.0.0.0:80
    #Listen [::]:80
    #Listen 80
    Listen 8082
    I also added some VirtualHost specification above the ServerAdmin bit:
    Code:
    <VirtualHost 192.168.1.15:8082>
    </VirtualHost>
    Also, port 443 was being used, so I had to change httpd-ssl.conf by commenting out the Listen 443 line:

    Code:
    C:\xampp\apache\conf\extra\httpd-ssl.conf
     
    #Listen 0.0.0.0:443
    #Listen [::]:443
    #Listen 443
    This allowed apache to successfully start in the XAMPP control panel.

    If you want to use a browser on a different PC other than the one the server.js is running on, then you must change PC.html from localhost/nowjs/now.js to serverip:8080/nowjs/now.js

    Code:
        <script src="http://192.168.1.15:8080/nowjs/now.js"></script>
    That's what I did. The controller can control nothing I've tested - but at least the client server situation is functioning properly. This isn't very noob friendly..so maybe these details might help someone...*shrugs*
     
Quick Reply
Draft saved Draft deleted
Loading...