Debian Codegraph @

src/platforms/psp.h

raw symbols SCIP
1
2 /**
3 *
4 * @file psp.h
5 *
6 * Part of the OpenJazz project
7 *
8 * @par Licence:
9 * Copyright (c) 2015-2026 Carsten Teibes
10 *
11 * OpenJazz is distributed under the terms of
12 * the GNU General Public License, version 2.0
13 *
14 */
15
16
17 #ifndef _PSP_H
18 #define _PSP_H
19
20 #include "platform_interface.h"
21
22 #ifdef PSP
23
24 /* Device uses SDL2 */
25
26 // Audio config
27 #define SOUND_FREQ 22050
28 #define SOUND_SAMPLES 1024
29 #define MUSIC_SETTINGS 0 // Low
30
31 // Keyboard config
32 #define NO_KEYBOARD_CFG
33
34 // Video config
35 #define DEFAULT_SCREEN_WIDTH 480
36 #define DEFAULT_SCREEN_HEIGHT 272
37 #define FULLSCREEN_ONLY
38 #define NO_RESIZE
39
40 // Controller config
41 #define DEFAULT_BUTTON_UP (8)
42 #define DEFAULT_BUTTON_DOWN (6)
43 #define DEFAULT_BUTTON_LEFT (7)
44 #define DEFAULT_BUTTON_RIGHT (9)
45 #define DEFAULT_BUTTON_JUMP (2)
46 #define DEFAULT_BUTTON_SWIM (2)
47 #define DEFAULT_BUTTON_FIRE (3)
48 #define DEFAULT_BUTTON_CHANGE (0)
49 #define DEFAULT_BUTTON_ENTER (5)
50 #define DEFAULT_BUTTON_ESCAPE (4)
51 #define DEFAULT_BUTTON_STATS (10)
52 #define DEFAULT_BUTTON_PAUSE (11)
53
54 class PspPlatform final : public IPlatform {
55 public:
56 PspPlatform();
57
58 bool WantsExit() override;
59
60 void ErrorNoDatafiles() override;
61 };
62
63
64 #endif
65
66 #endif