[SOLVED] Controller Reading Bit Information

tornotlukin

Member
Is there a list somewhere that give numbers to all the controller buttons?

I noticed that these values are used to refer to the controller for instance:
B = #%00100000
 
Sure the information is here

bit 7 6 5 4 3 2 1 0
button A B Select Start Up Down Left Right

Its better presented here

https://wiki.nesdev.com/w/index.php/Controller_Reading


There is also thsi day specifically from nerdy nights

http://nintendoage.com/forum/messageview.cfm?catid=22&threadid=7974



The whole series below
http://nintendoage.com/forum/messageview.cfm?catid=22&threadid=7155
 

Mugi

Member
those are actually upside down in nesmaker

#%00000000
Right | left | down | up | start | select | B | A

so if you want to do things with A button for example, you do

#%00000001

not #%10000000

this is the case atleast in 4.1.4, i havent updated to 4.1.5 yet so i dont know if this has been changed.
 

tornotlukin

Member
Code:
#%   0      0      0      0      0      0      0   0
   Right | left | down | up | start | select | B | A

For search on the site, Controller Reading bits
 
Top Bottom