Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 15:29 29 Mar 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : CMM2: Joystick / Games controller library

     Page 2 of 2    
Author Message
capsikin
Guru

Joined: 30/06/2020
Location: Australia
Posts: 341
Posted: 10:43pm 14 Aug 2020
Copy link to clipboard 
Print this post

  MauroXavier said  I'm fixed my Wii Classic Controller!

... Gauntlet with 2 player support is on the way!


Excellent!
 
capsikin
Guru

Joined: 30/06/2020
Location: Australia
Posts: 341
Posted: 03:53pm 16 Aug 2020
Copy link to clipboard 
Print this post

Here's the new version, pretty much untested.


cmm2-controllers-version-0.4.zip


  capsikin said  
That said I do plan to support 4 buttons as A,B,C,D.


The auto detection library file controllers.inc now supports 4 buttons on a Wii Classic Controller or on an arcade joystick.

  capsikin said  
I've got a test version using the USB keyboard for up to 3 players, 4 buttons each which I'll release in a few days, though it's probably too crowded for really playing actions games. If that's enough buttons for Final Fight it should work using the existing library interface, which could then later support 3 Wii Classic controllers.

I'm not sure how auto detection will go with more players, there may need to be a way for players to select what type of controller they are using (otherwise you set it by picking which version of the library you include)


This library file is usb-kbd-mc3.inc

  capsikin said  
The functions are supposed to support a player argument to select between multiple players, I'll fix this in a future version.

Even the 1 player library files should now support the player argument.
 
tdididit
Newbie

Joined: 17/09/2020
Location: Hungary
Posts: 1
Posted: 02:28am 19 Sep 2020
Copy link to clipboard 
Print this post

Here are id codes of Wii controllers used in nunchuk64 project:

const uint8_t ID_MAP[MAX_IDs][6] PROGMEM = {
 {0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, // ID_Unknown
 {0x00, 0x00, 0xa4, 0x20, 0x00, 0x00}, // ID_Nunchuck
 {0x00, 0x00, 0xa4, 0x20, 0x01, 0x01}, // ID_Wii_Classic
 {0x01, 0x00, 0xa4, 0x20, 0x01, 0x01}, // ID_Wii_Classic_Pro
 {0x01, 0x00, 0xa4, 0x20, 0x00, 0x01}, // ID_NES_Classic_Mini_Clone_Encrypted
 {0x00, 0x00, 0xa4, 0x20, 0x00, 0x01}  // ID_8Bitdo_SF30
};

Full repo can be found here:
https://github.com/djtulan/nunchuk64
 
     Page 2 of 2    
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024