mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-26 14:55:39 +00:00
Update for float, double and unsigned char, unsigned short, short, etc. char was left alone: read why here http://msdn.microsoft.com/en-us/library/cc953fe1.aspx
This commit is contained in:
parent
4c35fd37af
commit
7a8f46b19f
36 changed files with 75 additions and 75 deletions
|
|
@ -500,7 +500,7 @@ void InputEventManager::buildInputEvent(U32 deviceType, U32 deviceInst, InputEve
|
|||
newEvent.postToSignal(Input::smInputEvent);
|
||||
}
|
||||
|
||||
void InputEventManager::buildInputEvent(U32 deviceType, U32 deviceInst, InputEventType objType, InputObjectInstances objInst, InputActionType action, float fValue)
|
||||
void InputEventManager::buildInputEvent(U32 deviceType, U32 deviceInst, InputEventType objType, InputObjectInstances objInst, InputActionType action, F32 fValue)
|
||||
{
|
||||
InputEventInfo newEvent;
|
||||
|
||||
|
|
|
|||
|
|
@ -496,7 +496,7 @@ public:
|
|||
void buildInputEvent(U32 deviceType, U32 deviceInst, InputEventType objType, InputObjectInstances objInst, InputActionType action, S32 iValue);
|
||||
|
||||
/// Build an input event based on a single fValue
|
||||
void buildInputEvent(U32 deviceType, U32 deviceInst, InputEventType objType, InputObjectInstances objInst, InputActionType action, float fValue);
|
||||
void buildInputEvent(U32 deviceType, U32 deviceInst, InputEventType objType, InputObjectInstances objInst, InputActionType action, F32 fValue);
|
||||
|
||||
/// Build an input event based on a Point3F
|
||||
void buildInputEvent(U32 deviceType, U32 deviceInst, InputEventType objType, InputObjectInstances objInst, InputActionType action, Point3F& pValue);
|
||||
|
|
|
|||
|
|
@ -212,7 +212,7 @@ namespace Platform
|
|||
void debugBreak();
|
||||
|
||||
// Random
|
||||
float getRandom();
|
||||
F32 getRandom();
|
||||
|
||||
// Window state
|
||||
void setWindowLocked(bool locked);
|
||||
|
|
|
|||
|
|
@ -218,13 +218,13 @@ inline S8 getMin(S8 a, S8 b)
|
|||
}
|
||||
|
||||
/// Returns the lesser of the two parameters: a & b.
|
||||
inline float getMin(float a, float b)
|
||||
inline F32 getMin(F32 a, F32 b)
|
||||
{
|
||||
return a>b ? b : a;
|
||||
}
|
||||
|
||||
/// Returns the lesser of the two parameters: a & b.
|
||||
inline double getMin(double a, double b)
|
||||
inline F64 getMin(F64 a, F64 b)
|
||||
{
|
||||
return a>b ? b : a;
|
||||
}
|
||||
|
|
@ -266,13 +266,13 @@ inline S8 getMax(S8 a, S8 b)
|
|||
}
|
||||
|
||||
/// Returns the greater of the two parameters: a & b.
|
||||
inline float getMax(float a, float b)
|
||||
inline F32 getMax(F32 a, F32 b)
|
||||
{
|
||||
return a>b ? a : b;
|
||||
}
|
||||
|
||||
/// Returns the greater of the two parameters: a & b.
|
||||
inline double getMax(double a, double b)
|
||||
inline F64 getMax(F64 a, F64 b)
|
||||
{
|
||||
return a>b ? a : b;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue