本文整理汇总了C++中IwTrace函数的典型用法代码示例。如果您正苦于以下问题:C++ IwTrace函数的具体用法?C++ IwTrace怎么用?C++ IwTrace使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了IwTrace函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: IwTrace
void CAccelerometer::Init()
{
IwTrace(WM_MODULE_ACCEL,("Accelerometer: Init"));
m_Status = WM_STATUS_ACC_OFF;
}
示例2: s3eGPGSubmitLeaderboardScore_wrap
static void s3eGPGSubmitLeaderboardScore_wrap(const char* leaderboardID, int score)
{
IwTrace(GOOGLEPLAYGAMES_VERBOSE, ("calling s3eGooglePlayGames func on main thread: s3eGPGSubmitLeaderboardScore"));
s3eEdkThreadRunOnOS((s3eEdkThreadFunc)s3eGPGSubmitLeaderboardScore, 2, leaderboardID, score);
}
示例3: s3eGPGShowAllLeaderBoardsUI_wrap
static void s3eGPGShowAllLeaderBoardsUI_wrap()
{
IwTrace(GOOGLEPLAYGAMES_VERBOSE, ("calling s3eGooglePlayGames func on main thread: s3eGPGShowAllLeaderBoardsUI"));
s3eEdkThreadRunOnOS((s3eEdkThreadFunc)s3eGPGShowAllLeaderBoardsUI, 0);
}
示例4: s3eGPGInitialize_wrap
static s3eResult s3eGPGInitialize_wrap()
{
IwTrace(GOOGLEPLAYGAMES_VERBOSE, ("calling s3eGooglePlayGames func on main thread: s3eGPGInitialize"));
return (s3eResult)(intptr_t)s3eEdkThreadRunOnOS((s3eEdkThreadFunc)s3eGPGInitialize, 0);
}
示例5: s3eGPGUnRegisterCallback_wrap
static void s3eGPGUnRegisterCallback_wrap(s3eGPGCallbackType callbackID, s3eCallback callbackFn)
{
IwTrace(GOOGLEPLAYGAMES_VERBOSE, ("calling s3eGooglePlayGames func on main thread: s3eGPGUnRegisterCallback"));
s3eEdkThreadRunOnOS((s3eEdkThreadFunc)s3eGPGUnRegisterCallback, 2, callbackID, callbackFn);
}
示例6: OuyaPlugin_asyncOuyaRequestPurchase_wrap
static void OuyaPlugin_asyncOuyaRequestPurchase_wrap(const char* purchasable, s3eCallback onSuccess, s3eCallback onFailure, s3eCallback onCancel)
{
IwTrace(ODK_VERBOSE, ("calling ODK func on main thread: OuyaPlugin_asyncOuyaRequestPurchase"));
s3eEdkThreadRunOnOS((s3eEdkThreadFunc)OuyaPlugin_asyncOuyaRequestPurchase, 4, purchasable, onSuccess, onFailure, onCancel);
}
示例7: OuyaPlugin_JSONObject_Construct_wrap
static int OuyaPlugin_JSONObject_Construct_wrap()
{
IwTrace(ODK_VERBOSE, ("calling ODK func on main thread: OuyaPlugin_JSONObject_Construct"));
return (int)(intptr_t)s3eEdkThreadRunOnOS((s3eEdkThreadFunc)OuyaPlugin_JSONObject_Construct, 0);
}
示例8: AdFound
void AdFound(void* data) { IwTrace(Presage, ("PRESAGE AD FOUND")); }
示例9: AdNotFound
void AdNotFound(void* data) { IwTrace(Presage, ("PRESAGE AD NOT FOUND")); }
示例10: AdError
void AdError(void* data) { IwTrace(Presage, ("PRESAGE AD ERROR")); }
示例11: AdDisplayed
void AdDisplayed(void* data) { IwTrace(Presage, ("PRESAGE AD DISPLAYED")); }
示例12: IwTrace
int Strike::strikeUpdate(int32 x, int32 y, int32 z) {
int i;
float phoneAccel = (float)sqrt(z*z + y*y);
phoneAccel = (z+y) < 0 ? phoneAccel*-1 : phoneAccel*1;
if (phoneAccel < -200 || phoneAccel > 200)
IwTrace(GHOST_HUNTER, ("Strike x: %d y: %d z: %d accel: %f", x, y, z, phoneAccel));
// 1) Should the strike init?
if (!striking && phoneAccel > ACCEL_TO_START_STRKE) {
striking = true;
IwTrace(GHOST_HUNTER, ("Strike started with accel %f", phoneAccel));
// Initialize variables
strikeInitTime = clock();
peakAccel = 0;
accelDecreasing = false;
}
int timeUsed = clock() - strikeInitTime;
if (striking) {
IwTrace(GOHU, ("accel %f", phoneAccel));
if (timeUsed < MIN_STRIKE_TIME && z + y < ACCEL_TO_START_STRKE/2 && (x < 100 && y < 100)) {
// 2) Is the phone already slowing or going backward?
striking = false;
IwTrace(GHOST_HUNTER, ("Strike ended too early"));
} else if (timeUsed > MAX_STRIKE_TIME) {
// 2) Is the time up?
IwTrace(GHOST_HUNTER, ("Strike timed out"));
striking = false;
}
}
if (striking && timeUsed >= MIN_STRIKE_TIME) {
peakAccel = phoneAccel > peakAccel ? phoneAccel : peakAccel;
if (phoneAccel < peakAccel - 20) {
// 3) Acceleration is decreasing
if (!accelDecreasing) {
// 3) Initialize the end phase
accelDecreasing = true;
accelDecreasingTime = clock();
}
}
IwTrace(GOHU, ("Peak accel %f", peakAccel));
if (phoneAccel < REQUIRED_BLOW_STR) {
// If the final stop/blow of the strike is strong enough
// accept the hit
IwTrace(GHOST_HUNTER, ("Final phone accel %f", phoneAccel));
striking = false;
return 1;
} else {
IwTrace(GHOST_HUNTER, ("The blow was too weak with accel %f",
phoneAccel));
}
}
return 0;
}
示例13: s3eGPUImageTake_wrap
static char * s3eGPUImageTake_wrap(s3eGPUImageEventDoIt evnt, void * userData)
{
IwTrace(GPUIMAGE_VERBOSE, ("calling s3eGPUImage func on main thread: s3eGPUImageTake"));
return (char *)(intptr_t)s3eEdkThreadRunOnOS((s3eEdkThreadFunc)s3eGPUImageTake, 2, evnt, userData);
}
示例14: OuyaPlugin_initOuyaPlugin_wrap
static void OuyaPlugin_initOuyaPlugin_wrap(const char* jsonData, s3eCallback onSuccess, s3eCallback onFailure)
{
IwTrace(ODK_VERBOSE, ("calling ODK func on main thread: OuyaPlugin_initOuyaPlugin"));
s3eEdkThreadRunOnOS((s3eEdkThreadFunc)OuyaPlugin_initOuyaPlugin, 3, jsonData, onSuccess, onFailure);
}
示例15: AdClosed
void AdClosed(void* data) { IwTrace(Presage, ("PRESAGE AD CLOSED")); }