It seems the farther you are from 640 x 480, the less precise it is...and I suspect that if you venture away from the coded aspect ratio (4:3), it gets even worse?AEM wrote:QUOTE (AEM @ Jan 4 2017, 06:38 PM) I have always played Alleg at lower resolutions, usually 1280x768 or 1280x720. Turning, etc never seemed as precise at higher resolutions. Thought others felt the same but maybe not?
Shouldn't this scale with the engine?
Code: Select all
void MouseMove(IInputProvider* pprovider, const Point& pointMouse, bool bCaptured, bool bInside)
{
if (m_bJoystickEnabled) {
if (m_bJustEnabled) {
m_bJustEnabled = false;
} else {
float dx = (pointMouse.X() - 320) * m_sensitivity;
float dy = (pointMouse.Y() - 240) * m_sensitivity;
Point
point(
m_ppnumber[0]->GetValue() - dx,
m_ppnumber[1]->GetValue() - dy
);
float length = point.Length();
if (length > 1) {
point = point / length;
}
m_ppnumber[0]->SetValue(point.X());
m_ppnumber[1]->SetValue(point.Y());
}
pprovider->SetCursorPos(Point(320, 240));
}
}




