orx 1.16
Portable Game Engine
Loading...
Searching...
No Matches
orxSystem.h
Go to the documentation of this file.
1/* Orx - Portable Game Engine
2 *
3 * Copyright (c) 2008- Orx-Project
4 *
5 * This software is provided 'as-is', without any express or implied
6 * warranty. In no event will the authors be held liable for any damages
7 * arising from the use of this software.
8 *
9 * Permission is granted to anyone to use this software for any purpose,
10 * including commercial applications, and to alter it and redistribute it
11 * freely, subject to the following restrictions:
12 *
13 * 1. The origin of this software must not be misrepresented; you must not
14 * claim that you wrote the original software. If you use this software
15 * in a product, an acknowledgment in the product documentation would be
16 * appreciated but is not required.
17 *
18 * 2. Altered source versions must be plainly marked as such, and must not be
19 * misrepresented as being the original software.
20 *
21 * 3. This notice may not be removed or altered from any source
22 * distribution.
23 */
24
32
41
42
43#ifndef _orxSYSTEM_H_
44#define _orxSYSTEM_H_
45
46#include "orxInclude.h"
47#include "math/orxVector.h"
48
80
83typedef struct __orxSYSTEM_EVENT_PAYLOAD_t
84{
85 union
86 {
88
89 /* Touch event */
90 struct
91 {
92 orxDOUBLE dTime;
93 orxU32 u32ID;
94 orxFLOAT fX, fY, fPressure;
95 } stTouch;
96
97 /* Accelerometer event */
98 struct
99 {
100 orxDOUBLE dTime;
102 } stAccelerometer;
103
104 /* Drop event */
105 struct
106 {
107 const orxSTRING *azValueList;
108 orxU32 u32Number;
109
110 } stDrop;
111
112 /* Clipboard event */
113 struct
114 {
115 const orxSTRING zValue;
116
117 } stClipboard;
118 };
119
121
122
125extern orxDLLAPI void orxFASTCALL orxSystem_Setup();
126
130extern orxDLLAPI orxSTATUS orxFASTCALL orxSystem_Init();
131
134extern orxDLLAPI void orxFASTCALL orxSystem_Exit();
135
139extern orxDLLAPI orxDOUBLE orxFASTCALL orxSystem_GetTime();
140
144extern orxDLLAPI orxU64 orxFASTCALL orxSystem_GetRealTime();
145
149extern orxDLLAPI orxDOUBLE orxFASTCALL orxSystem_GetSystemTime();
150
154extern orxDLLAPI void orxFASTCALL orxSystem_Delay(orxFLOAT _fSeconds);
155
160extern orxDLLAPI orxVERSION *orxFASTCALL orxSystem_GetVersion(orxVERSION *_pstVersion);
161
165extern orxDLLAPI const orxSTRING orxFASTCALL orxSystem_GetVersionString();
166
170extern orxDLLAPI const orxSTRING orxFASTCALL orxSystem_GetVersionFullString();
171
175extern orxDLLAPI orxU32 orxFASTCALL orxSystem_GetVersionNumeric();
176
180extern orxDLLAPI const orxSTRING orxFASTCALL orxSystem_GetClipboard();
181
186extern orxDLLAPI orxSTATUS orxFASTCALL orxSystem_SetClipboard(const orxSTRING _zValue);
187
188
189#endif /* _orxSYSTEM_H_ */
190
#define orxDLLAPI
Definition orxDecl.h:381
orxSYSTEM_EVENT
Definition orxSystem.h:52
orxDLLAPI const orxSTRING orxFASTCALL orxSystem_GetVersionFullString()
orxDLLAPI orxU64 orxFASTCALL orxSystem_GetRealTime()
orxDLLAPI void orxFASTCALL orxSystem_Delay(orxFLOAT _fSeconds)
orxDLLAPI void orxFASTCALL orxSystem_Setup()
orxDLLAPI void orxFASTCALL orxSystem_Exit()
orxDLLAPI orxSTATUS orxFASTCALL orxSystem_Init()
orxDLLAPI orxSTATUS orxFASTCALL orxSystem_SetClipboard(const orxSTRING _zValue)
orxDLLAPI orxDOUBLE orxFASTCALL orxSystem_GetTime()
orxDLLAPI const orxSTRING orxFASTCALL orxSystem_GetClipboard()
orxDLLAPI orxVERSION *orxFASTCALL orxSystem_GetVersion(orxVERSION *_pstVersion)
orxDLLAPI const orxSTRING orxFASTCALL orxSystem_GetVersionString()
orxDLLAPI orxDOUBLE orxFASTCALL orxSystem_GetSystemTime()
orxDLLAPI orxU32 orxFASTCALL orxSystem_GetVersionNumeric()
@ orxSYSTEM_EVENT_NONE
Definition orxSystem.h:77
@ orxSYSTEM_EVENT_FOREGROUND
Definition orxSystem.h:58
@ orxSYSTEM_EVENT_DROP
Definition orxSystem.h:69
@ orxSYSTEM_EVENT_CLOSE
Definition orxSystem.h:53
@ orxSYSTEM_EVENT_PARAM_READY
Definition orxSystem.h:72
@ orxSYSTEM_EVENT_GAME_LOOP_STOP
Definition orxSystem.h:61
@ orxSYSTEM_EVENT_TOUCH_END
Definition orxSystem.h:65
@ orxSYSTEM_EVENT_PARAM_DISPLAY
Definition orxSystem.h:73
@ orxSYSTEM_EVENT_GAME_LOOP_START
Definition orxSystem.h:60
@ orxSYSTEM_EVENT_FOCUS_LOST
Definition orxSystem.h:55
@ orxSYSTEM_EVENT_FOCUS_GAINED
Definition orxSystem.h:54
@ orxSYSTEM_EVENT_NUMBER
Definition orxSystem.h:75
@ orxSYSTEM_EVENT_TOUCH_BEGIN
Definition orxSystem.h:63
@ orxSYSTEM_EVENT_BACKGROUND
Definition orxSystem.h:57
@ orxSYSTEM_EVENT_TOUCH_MOVE
Definition orxSystem.h:64
@ orxSYSTEM_EVENT_MOTION_SHAKE
Definition orxSystem.h:67
@ orxSYSTEM_EVENT_ACCELERATE
Definition orxSystem.h:66
@ orxSYSTEM_EVENT_CLIPBOARD
Definition orxSystem.h:70
orxSTATUS
Definition orxType.h:270
const orxSTRING zValue
Definition orxSystem.h:115
const orxSTRING * azValueList
Definition orxSystem.h:107

Generated for orx by doxygen 1.8.11