mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +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
|
|
@ -896,8 +896,8 @@ bool DInputDevice::buildEvent( DWORD offset, S32 newData, S32 oldData )
|
|||
// Scale to the range -1.0 to 1.0:
|
||||
if ( objInfo.mMin != DIPROPRANGE_NOMIN && objInfo.mMax != DIPROPRANGE_NOMAX )
|
||||
{
|
||||
float range = float( objInfo.mMax - objInfo.mMin );
|
||||
newEvent.fValue = float( ( 2 * newData ) - objInfo.mMax - objInfo.mMin ) / range;
|
||||
F32 range = F32( objInfo.mMax - objInfo.mMin );
|
||||
newEvent.fValue = F32( ( 2 * newData ) - objInfo.mMax - objInfo.mMin ) / range;
|
||||
}
|
||||
else
|
||||
newEvent.fValue = (F32)newData;
|
||||
|
|
@ -1041,7 +1041,7 @@ bool DInputDevice::buildEvent( DWORD offset, S32 newData, S32 oldData )
|
|||
return true;
|
||||
}
|
||||
|
||||
void DInputDevice::rumble(float x, float y)
|
||||
void DInputDevice::rumble(F32 x, F32 y)
|
||||
{
|
||||
LONG rglDirection[2] = { 0, 0 };
|
||||
DICONSTANTFORCE cf = { 0 };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue