jcorey99 / snes9xgx143

Automatically exported from code.google.com/p/snes9xgx143
0 stars 0 forks source link

added wiimote support to r64 #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
these additions are on top of the libfat support additions. i'm not sure
exactly how useful this will be to you guys but i can no longer work on
this because i won't have access to my wii for like 2 months. also i have
no idea where to start in trying to fix the multitap crash. for most games
2 wiimotes should be enough and this at least will put the official
unofficial branch of snes9x gx on par with the unofficial unofficial releases.

general notes:
- wiimote configurable buttons and defaults:
   button: | A | B | X | Y | Start | Select | R | L |
  wiimote:   B   2   A   1   Home     +/-     +   -  
  nunchuk:   A   B   C   Z     1       2      +   -  
  classic:   A   B   X   Y     +       -      R   L  
- wiimote direction maps (non-configurable)
  direction: | Up    | Down  | Left  | Right |
    wiimote:   Right   Left    Up      Down
    nunchuk:   Up      Down    Left    Right
    classic:   Up      Down    Left    Right
- what button(s) to press to exit to emulator menu (non-configurable):
  wiimote: Home/+
  nunchuk: Home
  classic: Home
- menu will use same buttons as gameplay
- expansion will be automatically detected (supports switching without
exiting to menu)
- all buttons listed for classic are on the classic controller (wiimote
buttons will be ignored if Classic Controller expansion is used)

known bugs:
pad configuration will always detect gc pads even if they're not connected
(at least on the wii; i don't have a gamecube to test this)
multitap will not work. enabling it then resuming emulation returns the
attached code dump.

gcpads:
- reconfigured pad and snes maps
- separate controller maps for each controller
- added wiimote and expansion maps
- added direction maps
- pad_config, wpad_config, WPAD_StickX, WPAD_StickY originally from
genplus-gx by Eke-Eke
- added WPAD_DecodeJoy and WPAD_GetAnalog
- added GetMenu to detect when players request the emulator menu
- added MenuButtons to simplify emulator menu navigation
- modified existing functions to work with updated maps and added wiimote
functions

gcconfig:
- use MenuButtons for navigation
- new controller configuration menu

gcdvd:
- use MenuButtons for navigation

gcgxvideo:
- added WPAD_Init stuff

english.h:
- replaced pad configuration with new labels

Makefile.wii:
- linking wiiuse and bte

Original issue reported on code.google.com by Nephropi...@gmail.com on 16 Jun 2008 at 8:08

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by dborth@gmail.com on 3 Dec 2008 at 9:18