Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
x68000:cpsfdev [2017/10/02 15:15]
neko68k <030 requires supervisor mode. better deinit.
x68000:cpsfdev [2018/02/16 04:57]
neko68k small change to inpout checking
Line 1: Line 1:
-This is a simple program demonstrating how to interface with a CPSF or CPSF-MD joystick. Using a second CPSF should follow the same technique but with joyport_b, IOC5 and PC5. It can be compiled with the Lydux toolchain with the following commands:+This is a simple program demonstrating how to interface with a CPSF or CPSF-MD joystick. Refer to the following page for joystick register [[joystick_regs|reference]]. Using a second CPSF should follow the same technique but with joyport_b, IOC5 and PC5. It can be compiled with the Lydux toolchain with the following commands:
  
 <file> <file>
Line 59: Line 59:
   
  // quit on ESC  // quit on ESC
- if(_iocs_bitsns(0) == 2){+ if(_dos_inpout(0xFF)==0x1B){
  *joycontrolword = 8;  *joycontrolword = 8;
  *joyport_c = joyport_c_old;  *joyport_c = joyport_c_old;
 
 x68000/cpsfdev.txt ยท Last modified: 2019/08/27 20:45 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Driven by DokuWiki