aboutsummaryrefslogtreecommitdiff
path: root/Source/Pad.c
Commit message (Collapse)AuthorAgeFilesLines
* Return pad error if status != 0Xavier Del Campo Romero2021-01-031-2/+2
|
* * LEVEL3.PLT was incorrectly using Windows CRLF end of line.XaviDCR922018-11-251-2/+2
| | | | * When assigning a parking slot, busy parking slots cannot be selected. Some work TODO yet, though.
* Optimization flag changed from -Os to -O3 (seems to perform better FPS-wise).Xavier ASUS2018-11-231-20/+20
| | | | Improved const-correctness and scope for some variables.
* * Menu.c: bugfix for PLT level list.XaviDCR922018-03-101-4/+4
| | | | * Minor: added whitespace to "sizeof" operand.
* * RWY_DIR and AIRCRAFT_DIRECTION have been joint into a single enum.XaviDCR922017-12-291-2/+0
| | | | | | * Game.c: new prototypes GameGetParkingDirection() and GameGetRunwayDirection(). * Slight optimizations into GameRenderLevel(). * Added some comment headers into Gfx.c.
* * Slight optimization: all comparations against true are now compared ↵XaviDCR922017-12-261-20/+20
| | | | | | | against != false. + Added a provisional background during gameplay (still WIP). * Map editor now allows creating a map.
* * Trimmed ending whitespaces.XaviDCR922017-09-161-62/+62
| | | | * Makefile now generates output TIM files automatically, using 'cat whatever.flags' files as flags for bmp2tim.
* * Minor changes (spaces between "if"/"for"... instructions).XaviDCR922017-08-301-27/+27
| | | | + Added output ELF file with debugging symbols for nocash.
* * (Bugfix): padx_last_key_single_pressed was being checked AFTER checking ↵XaviDCR922017-08-191-3/+4
| | | | pads connected, so it was never calculated if, for example, pad 2 was disconnected. This was only reproducible under real hardware.
* + System timer functions now moved to a separate source file, Timer.c/Timer.h.XaviDCR922017-08-101-3/+4
| | | | | * Added some more comments on Game.c. * On GamePathToTile(), duplicate checks for existing tile have been replaced by calls to GameWaypointCheckExisting().
* * Include directives are now moved to .c instead of .h, as it should really ↵XaviDCR922017-08-061-7/+45
| | | | | | | | | be... * Makefile now rebuilds needed targets on modified header files. * Some more work on GameEmergencyMode(). * Initial work on PSX mouse auto detection. * Prototypes for RCNT2 I_MASK bit handling.
* * Added comments on System.XaviDCR922017-07-271-1/+42
| | | | | | | * Files needed for Game are now only loaded once, except from LEVEL1.PLT. * Added DevMenu to get debug info. * ISR_LoadMenuVBlank() does not stop when accessing SIO. * On fopen() and SERIAL_INTERFACE defined, "#" is prepended and "@" is appended to filename string.
* + Added support for SIO (Serial Input Output).XaviDCR922017-07-201-2/+2
| | | | * On SystemLoadFileToBuffer(), files can be now uploaded to PSX using QPSXSerial.
* * Takeoff barely implemented. Stil a lot of work to do.XaviDCR922017-05-281-11/+11
| | | | | * Added new runway holding point tiles. * Bugfixes in last key single pressed.
* * Added more aircraft on LEVEL1.PLT.XaviDCR922017-05-271-18/+22
| | | | | | * Unboarding state now totally implemented. * (Bugfix): Incorrect aircraft was selected on ShowAircraftData. * Gfx1HzFlash() and Gfx2HzFlash() were incorrectly implemented, causing multiple ticks on a single cycle.
* * Implemented remaining time for flights.XaviDCR922017-05-251-2/+30
| | | | | * Initial STATE_UNBOARDING implementation. Still some work to do. * Added score logic.
* * Split screen from now on is only calling GsDrawList() once. The reason for ↵XaviDCR922017-05-221-13/+19
| | | | | | | | | this is that now DMA is used instead of GPIO for drawenv/dispenv management. * (PSXSDK internals): incorrect bit shifting was being made on 0xE3 and 0xE4 GPU instructions (drawenv management). * (Bugfix): Timers were not being reset properly because pad1_cheat_timer and pad2_cheat_timer were being accidentally reset to NULL on calling memset() for cheatsArray. * Timers are now updated every 100 ms instead of every second. * Mouse sprite should be now drawn on X_SCREEN_RESOLUTION >> 2 in 2-player mode. TODO: check why this isn't working!
* * Added some comments on System.XaviDCR922017-05-011-0/+10
| | | | | | | * New routine PadOneKeySinglePress() and PadTwoKeySinglePress(). * Temp waypoints now turn red when colliding with an aircraft or with a previously existing waypoint. * When loading files, GPU operation is finishedbefore calling fopen. Also, I_MASK is disabled just in case. * For PLT files, actual tile needs to be set instead of parking number.
* * Updated.XaviDCR922017-02-041-0/+0
|
* Initial commitXavier Del Campo2017-02-041-0/+482