added everything
This commit is contained in:
42
engine/platformMacCarb/macCarbEvents.h
Executable file
42
engine/platformMacCarb/macCarbEvents.h
Executable file
@@ -0,0 +1,42 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// Torque Game Engine
|
||||
// Copyright (C) GarageGames.com, Inc.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
|
||||
/// Hides the mouse cursor when the mouse is locked, when we are in fullscreen
|
||||
/// mode, and when the cursor is inside the window bounds.
|
||||
/// Optionally takes the cursor location, in window local coords.
|
||||
void MacCarbCheckHideCursor(S32 x=-1, S32 y=-1);
|
||||
|
||||
/// Hides or shows the system mouse cursor, regardless of the mouse position,
|
||||
/// and tracks the hidden state.
|
||||
void MacCarbSetHideCursor(bool shouldHide);
|
||||
|
||||
/// Install event handlers on the current window & on the app.
|
||||
void MacCarbInstallCarbonEventHandlers(void);
|
||||
|
||||
/// Remove all event handlers, except the alert event handlers.
|
||||
void MacCarbRemoveCarbonEventHandlers(void);
|
||||
|
||||
/// Install event handlers for custom Torque inter-thread communication.
|
||||
/// This must be called before starting multithreaded execution in main().
|
||||
void MacCarbInstallTorqueCarbonEventHandlers(void);
|
||||
|
||||
/// create an event of class kEventClassTorque, and send it to the main thread
|
||||
void MacCarbSendTorqueEventToMain( U32 eventKind, void* userData = NULL );
|
||||
|
||||
/// event type for alerts. The event class is an arbitrary val, it must not collide w/ kEventApp* .
|
||||
const U32 kEventClassTorque = 'TORQ';
|
||||
const U32 kEventTorqueAlert = 1;
|
||||
const U32 kEventTorqueFadeInWindow = 2;
|
||||
const U32 kEventTorqueFadeOutWindow = 3;
|
||||
const U32 kEventTorqueReleaseWindow = 4;
|
||||
const U32 kEventTorqueShowMenuBar = 5;
|
||||
|
||||
const U32 kEventParamTorqueData = 'tDAT'; // typeVoidPtr void*
|
||||
//const U32 kEventParamTorqueSemaphorePtr = 'tSEM'; // typeVoidPtr void*
|
||||
//const U32 kEventParamTorqueDialogRef = 'tDRF'; // typeDialogRef DialogRef
|
||||
//const U32 kEventParamTorqueHitPtr = 'tHIT'; // typeVoidPtr U32*
|
||||
//const U32 typeDialogRef = 'dlog'; // oddly, not provided in Frameworks.
|
||||
|
||||
Reference in New Issue
Block a user