Replace Ghost integrals with stdint fixed width integers.
Also replace integer with bool in Ghost API when only used as boolean, and uint8* with char* in Ghost API when variable is a string. Reviewed By: brecht Differential Revision: https://developer.blender.org/D11617 Signed-off-by: Nicholas Rishel <rishel.nick@gmail.com>
This commit is contained in:
committed by
Nicholas Rishel
parent
b66c21f8b0
commit
f3ec0d8e58
@@ -97,7 +97,7 @@ bool GHOST_NDOFManagerUnix::processEvents()
|
||||
switch (e.type) {
|
||||
case SPNAV_EVENT_MOTION: {
|
||||
/* convert to blender view coords */
|
||||
GHOST_TUns64 now = m_system.getMilliSeconds();
|
||||
uint64_t now = m_system.getMilliSeconds();
|
||||
const int t[3] = {(int)e.motion.x, (int)e.motion.y, (int)-e.motion.z};
|
||||
const int r[3] = {(int)-e.motion.rx, (int)-e.motion.ry, (int)e.motion.rz};
|
||||
|
||||
@@ -109,7 +109,7 @@ bool GHOST_NDOFManagerUnix::processEvents()
|
||||
break;
|
||||
}
|
||||
case SPNAV_EVENT_BUTTON:
|
||||
GHOST_TUns64 now = m_system.getMilliSeconds();
|
||||
uint64_t now = m_system.getMilliSeconds();
|
||||
updateButton(e.button.bnum, e.button.press, now);
|
||||
break;
|
||||
}
|
||||
@@ -118,7 +118,7 @@ bool GHOST_NDOFManagerUnix::processEvents()
|
||||
|
||||
#ifdef USE_FINISH_GLITCH_WORKAROUND
|
||||
if (motion_test_prev == true && motion_test == false) {
|
||||
GHOST_TUns64 now = m_system.getMilliSeconds();
|
||||
uint64_t now = m_system.getMilliSeconds();
|
||||
const int v[3] = {0, 0, 0};
|
||||
|
||||
updateTranslation(v, now);
|
||||
|
||||
Reference in New Issue
Block a user