| 1 | |
| 2 | /** |
| 3 | * |
| 4 | * @file loop.h |
| 5 | * |
| 6 | * Part of the OpenJazz project |
| 7 | * |
| 8 | * @par History: |
| 9 | * - 23rd August 2005: Created OpenJazz.h |
| 10 | * - 30th April 2010: Created loop.h from parts of OpenJazz.h |
| 11 | * |
| 12 | * @par Licence: |
| 13 | * Copyright (c) 2005-2017 AJ Thomson |
| 14 | * |
| 15 | * OpenJazz is distributed under the terms of |
| 16 | * the GNU General Public License, version 2.0 |
| 17 | * |
| 18 | */ |
| 19 | |
| 20 | |
| 21 | #ifndef _LOOP_H |
| 22 | #define _LOOP_Hcxx . . $ `src/loop.h:22:9`! |
| 23 | |
| 24 | |
| 25 | #include "io/gfx/paletteeffects.h"cxx . . $ `<file>/src/io/gfx/paletteeffects.h`/ |
| 26 | |
| 27 | |
| 28 | // Constants |
| 29 | |
| 30 | // Return values |
| 31 | #define JOYSTICKBcxx . . $ `src/loop.h:31:9`! 0x100 |
| 32 | #define JOYSTICKANEGcxx . . $ `src/loop.h:32:9`! 0x200 |
| 33 | #define JOYSTICKAPOScxx . . $ `src/loop.h:33:9`! 0x300 |
| 34 | #define JOYSTICKHUPcxx . . $ `src/loop.h:34:9`! 0x400 |
| 35 | #define JOYSTICKHLFTcxx . . $ `src/loop.h:35:9`! 0x500 |
| 36 | #define JOYSTICKHRHTcxx . . $ `src/loop.h:36:9`! 0x600 |
| 37 | #define JOYSTICKHDWNcxx . . $ `src/loop.h:37:9`! 0x700 |
| 38 | |
| 39 | |
| 40 | // Variable |
| 41 | |
| 42 | EXTERNcxx . . $ `src/OpenJazz.h:38:10`! unsigned int globalTickscxx . . $ globalTicks.; |
| 43 | |
| 44 | |
| 45 | // Enum |
| 46 | |
| 47 | /// Ways the loop function should handle input. |
| 48 | enum LoopTypecxx . . $ LoopType# { |
| 49 | |
| 50 | NORMAL_LOOPcxx . . $ NORMAL_LOOP., ///< Normal behaviour |
| 51 | TYPING_LOOPcxx . . $ TYPING_LOOP., ///< Return key presses |
| 52 | SET_KEY_LOOPcxx . . $ SET_KEY_LOOP., ///< Return key presses without modifying control state |
| 53 | SET_JOYSTICK_LOOPcxx . . $ SET_JOYSTICK_LOOP. ///< Return joystick actions without modifying control state |
| 54 | |
| 55 | }; |
| 56 | |
| 57 | |
| 58 | // Function in main.cpp |
| 59 | |
| 60 | EXTERNcxx . . $ `src/OpenJazz.h:38:10`! int loopcxx . . $ loop(fd873fd06cfe1135). (LoopTypecxx . . $ LoopType# type, PaletteEffectcxx . . $ PaletteEffect#* paletteEffects = nullptr, bool effectsStopped = false); |
| 61 | |
| 62 | #endif |
| 63 |