mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-19 03:20:11 +03:00
chore(event): clean up function declarations
This commit is contained in:
parent
3ed95216a9
commit
4cc5b4b038
@ -15,25 +15,25 @@ class CEvent : public TRefCnt {
|
||||
class CCharEvent : public CEvent, public EVENT_DATA_CHAR {
|
||||
public:
|
||||
// Member functions
|
||||
CCharEvent& operator=(const EVENT_DATA_CHAR&);
|
||||
CCharEvent& operator=(const EVENT_DATA_CHAR& data);
|
||||
};
|
||||
|
||||
class CKeyEvent : public CEvent, public EVENT_DATA_KEY {
|
||||
public:
|
||||
// Member functions
|
||||
CKeyEvent& operator=(const EVENT_DATA_KEY&);
|
||||
CKeyEvent& operator=(const EVENT_DATA_KEY& data);
|
||||
};
|
||||
|
||||
class CMouseEvent : public CEvent, public EVENT_DATA_MOUSE {
|
||||
public:
|
||||
// Member functions
|
||||
CMouseEvent& operator=(const EVENT_DATA_MOUSE&);
|
||||
CMouseEvent& operator=(const EVENT_DATA_MOUSE& data);
|
||||
};
|
||||
|
||||
class CSizeEvent : public CEvent, public EVENT_DATA_SIZE {
|
||||
public:
|
||||
// Member functions
|
||||
CSizeEvent& operator=(const EVENT_DATA_SIZE&);
|
||||
CSizeEvent& operator=(const EVENT_DATA_SIZE& data);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -46,7 +46,7 @@ class EvtContext : public TSingletonInstanceId<EvtContext, offsetof(TInstanceId<
|
||||
uint32_t m_startWatchdog;
|
||||
|
||||
// Member functions
|
||||
EvtContext(uint32_t, uint32_t, uint32_t, void*, int32_t);
|
||||
EvtContext(uint32_t flags, uint32_t idleTime, uint32_t schedWeight, void* callContext, int32_t startWatchdog);
|
||||
};
|
||||
|
||||
class EvtContextQueue : public TSPriorityQueue<EvtContext> {
|
||||
|
@ -29,34 +29,34 @@ namespace Input {
|
||||
#endif
|
||||
}
|
||||
|
||||
void CheckMouseModeState(void);
|
||||
void CheckMouseModeState();
|
||||
|
||||
MOUSEBUTTON ConvertButtonNumberToMOUSEBUTTON(int32_t);
|
||||
MOUSEBUTTON ConvertButtonNumberToMOUSEBUTTON(int32_t buttonNumber);
|
||||
|
||||
void ConvertPosition(int32_t, int32_t, float*, float*);
|
||||
void ConvertPosition(int32_t clientx, int32_t clienty, float* x, float* y);
|
||||
|
||||
uint32_t GenerateMouseFlags(void);
|
||||
uint32_t GenerateMouseFlags();
|
||||
|
||||
const char* GetButtonName(int32_t);
|
||||
const char* GetButtonName(int32_t button);
|
||||
|
||||
void IEvtInputInitialize();
|
||||
|
||||
int32_t IEvtInputProcess(EvtContext* context, int32_t* shutdown);
|
||||
|
||||
const char* KeyCodeToString(KEY);
|
||||
const char* KeyCodeToString(KEY key);
|
||||
|
||||
int32_t OsInputGet(OSINPUT*, int32_t*, int32_t*, int32_t*, int32_t*);
|
||||
int32_t OsInputGet(OSINPUT* id, int32_t* param0, int32_t* param1, int32_t* param2, int32_t* param3);
|
||||
|
||||
void OsInputInitialize(void);
|
||||
void OsInputInitialize();
|
||||
|
||||
bool OsInputIsUsingCocoaEventLoop(void);
|
||||
bool OsInputIsUsingCocoaEventLoop();
|
||||
|
||||
void OsInputPostEvent(OSINPUT, int32_t, int32_t, int32_t, int32_t);
|
||||
void OsInputPostEvent(OSINPUT id, int32_t param0, int32_t param1, int32_t param2, int32_t param3);
|
||||
|
||||
int32_t OsQueueGet(OSINPUT*, int32_t*, int32_t*, int32_t*, int32_t*);
|
||||
int32_t OsQueueGet(OSINPUT* id, int32_t* param0, int32_t* param1, int32_t* param2, int32_t* param3);
|
||||
|
||||
void OsQueuePut(OSINPUT, int32_t, int32_t, int32_t, int32_t);
|
||||
void OsQueuePut(OSINPUT id, int32_t param0, int32_t param1, int32_t param2, int32_t param3);
|
||||
|
||||
void OsQueueSetParam(int32_t, int32_t);
|
||||
void OsQueueSetParam(int32_t index, int32_t param);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user