Fixed a pair of bugs with flipped controls and sensitivity > 1. "Ignore keyboard" removed from device list. Removed some unnecessary mouse capture code for mouse raw input. Renamed some options to be more user friendly.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@515 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
mattmenke committed 2009-02-17 04:54:46 +00:00
1 parent 68ceb3b8fb
commit 87a230f550
9 files changed
+116 -139

No files matched your search

+2 -10
View File
@@ -183,16 +183,8 @@ void Device::CalcVirtualState() {
double angle = val * (3.141592653589793/18000.0);
double East = sin(angle);
double South = -cos(angle);
double fabsSouth = fabs(South);
double fabsEast = fabs(East);
// Normalize so greatest direction is 1.
double mul;
if (fabsSouth > fabsEast) {
mul = FULLY_DOWN / fabsSouth;
}
else {
mul = FULLY_DOWN / fabsEast;
}
double mul = FULLY_DOWN / max(fabs(South), fabs(East));
iEast = (int) floor(East * mul + 0.5);
iSouth = (int) floor(South * mul + 0.5);
}
@@ -300,10 +292,10 @@ wchar_t *Device::GetVirtualControlName(VirtualControl *control) {
uid &= 0xFF000000;
int len = (int)wcslen(baseName);
if (len > 99) len = 99;
if (uid && len > 89) len = 89;
memcpy(temp, baseName, len*sizeof(wchar_t));
temp[len] = 0;
if (uid) {
if (len > 95) len = 95;
wchar_t *out = temp+len;
if (uid == UID_AXIS_POS) {
wcscpy(out, L" +");