Re: [native-client-discuss] In Nacl, the game pad, what do you support?

108 views
Skip to first unread message

Christian Stefansen

unread,
Apr 1, 2013, 11:27:27 AM4/1/13
to native-cli...@googlegroups.com
Have a look at the 'gamepad' example in the SDK.


On Mon, Apr 1, 2013 at 8:12 AM, 최문규 <skyli...@gmail.com> wrote:
I would like to create an application using a game pad in NaCl.
I wondered how any game pad support.
If you have code using a game pad
Please send me

Day! Have a happy day

--
You received this message because you are subscribed to the Google Groups "Native-Client-Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to native-client-di...@googlegroups.com.
To post to this group, send email to native-cli...@googlegroups.com.
Visit this group at http://groups.google.com/group/native-client-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Christian Stefansen

최문규

unread,
Apr 1, 2013, 10:59:56 PM4/1/13
to native-cli...@googlegroups.com
Thank you Christian Stefansen
but i have already tried the test.(samplecode)
but this is not worked.

my test machine is PlayStation2 (dualshock2)
exampled code is pepper25/examples/gamepad

how should be able to run this game pad?


Alan Wolfe

unread,
Apr 1, 2013, 11:30:07 PM4/1/13
to native-cli...@googlegroups.com
does your dualshock controller work on your computer with other software? (games)?

If not, your first step would be to figure out how to make it work with anything on your computer.  If you get that working, it ought to work with NaCl as I understand it! (:


최문규

unread,
Apr 2, 2013, 4:29:21 AM4/2/13
to native-cli...@googlegroups.com
thank you Atrix256. my smartphone is motorola atrix. just.. joke.

anyway as your advice.i tried to play the game with controller.(CYVOX Controller, work on.) this was!

but 

pepper_25/examples/gamepad 
this example is not working.
(connecting controller)


Separate models that support gamepads?
or
Game pad api requires JavaScript to?

thank you. your opinion

Justin TerAvest

unread,
Apr 2, 2013, 10:14:51 AM4/2/13
to native-cli...@googlegroups.com
The Pepper gamepad API only provides information for whitelisted
gamepads. This is because different controllers report buttons and
axes differently, but the Gamepad API expects buttons to be
consistently mapped.
https://dvcs.w3.org/hg/gamepad/raw-file/default/gamepad.html#remapping

For linux, the mappings are at:
https://code.google.com/p/chromium/codesearch#chromium/src/content/browser/gamepad/gamepad_standard_mappings_linux.cc&sq=package:chromium&type=cs

For windows (for DirectInput), they are at:
https://code.google.com/p/chromium/codesearch#chromium/src/content/browser/gamepad/gamepad_standard_mappings_win.cc&sq=package:chromium&type=cs

For OS X, they are at:
https://code.google.com/p/chromium/codesearch#chromium/src/content/browser/gamepad/gamepad_standard_mappings_mac.mm&sq=package:chromium&type=cs

You can scroll to the bottom to see the list of gamepad models that
are supported.

For windows, there's a tool to collect mapping information for
unsupported controllers at:
https://github.com/GoogleChrome/chrome-gamepad-probe
(We're adding support for other platforms, but that's not done yet)
Reply all
Reply to author
Forward
0 new messages