mirror of
https://github.com/cc65/cc65.git
synced 2024-12-24 11:31:31 +00:00
Merge pull request #217 from clbr/master
Some nes documentation updates, joypad defines
This commit is contained in:
commit
08e4cbfdbc
10
doc/nes.sgml
10
doc/nes.sgml
@ -69,7 +69,7 @@ Programs containing NES specific code may use the <tt/nes.h/ header file.
|
||||
<sect1>NES specific functions<p>
|
||||
|
||||
<itemize>
|
||||
<item>waitvblank
|
||||
<item>waitvblank - wait until the start of vblank
|
||||
<item>get_tv
|
||||
</itemize>
|
||||
|
||||
@ -123,6 +123,14 @@ No extended memory drivers are currently available for the NES.
|
||||
|
||||
</descrip><p>
|
||||
|
||||
The generic interface doesn't export the start and select buttons. To
|
||||
test for those, use the defines in nes.h instead of the generic masks.
|
||||
|
||||
Example:
|
||||
<tscreen><verb>
|
||||
if (joy_read(0) & KEY_A)
|
||||
</verb></tscreen>
|
||||
|
||||
|
||||
<sect1>Mouse drivers<p>
|
||||
|
||||
|
@ -90,6 +90,15 @@
|
||||
/* No support for dynamically loadable drivers */
|
||||
#define DYN_DRV 0
|
||||
|
||||
/* The joystick keys - all keys are supported */
|
||||
#define KEY_UP 0x10
|
||||
#define KEY_DOWN 0x20
|
||||
#define KEY_LEFT 0x40
|
||||
#define KEY_RIGHT 0x80
|
||||
#define KEY_A 0x1
|
||||
#define KEY_B 0x2
|
||||
#define KEY_SELECT 0x4
|
||||
#define KEY_START 0x8
|
||||
|
||||
|
||||
/* The addresses of the static drivers */
|
||||
|
Loading…
Reference in New Issue
Block a user