Hallo Leute

Ich möchte gerne die Maus bewegung auf die Tasten w a s d umleiten (oder Pfeiltasten) können um damit in einem Egoshooter Spiel mittels Maus laufen zu können.

Im Netz finde ich leider nur wie man mittels Tastatur die Maus bewegt aber ich will ja das gegenteil erreichen :evil:

Das einzige was meinen Vorstellungen entspricht ist arrmouse (http://www.bookcase.com/library/soft...til.mouse.html)
leider ist das aber nur für MSDOS gemacht und ich habe windows XP

Hat jemand vielleicht so en Programm dass das kann oder kann jemand von euch das mir Programmieren?

Gruss
merfen

PS: Hier ein versuch in C++ aber das funktioniert auch nicht ganz nach meinen Vorstellungen, da das fenster zu klein ist und die Maus bis an ein Maximum kommt und dann aufhört Koordinaten zu generieren (hab selbst dran mal rumgebastelt aber klappt auch ned)

Code:
/********************************************
* Zeus CMD - GLUT Tutorial 03 : Mouse Input *
* By Grant James (ZEUS)                     *
* http://www.zeuscmd.com                    *
********************************************/
#include <iostream>
#include <gl/glut.h>

using namespace std;

bool lbuttonDown = false;

bool init()
{
	return true;
}

void display()
{

}

void mouse(int button, int state, int x, int y)
{
	if (button == GLUT_RIGHT_BUTTON)
	{
		if (state == GLUT_DOWN)
			cout << "Right button pressed"
			<< endl;
		else
			cout << "Right button lifted "
			<< "at (" << x << "," << y
			<< ")" << endl;
	}
	else if (button == GLUT_LEFT_BUTTON)
	{
		if (state == GLUT_DOWN)
			lbuttonDown = true;
		else
			lbuttonDown = false;
	}
}

void motion(int x, int y)
{
	if (lbuttonDown)
		cout << "Mouse dragged with left button at "
		<< "(" << x << "," << y << ")" << endl;
}

void motionPassive(int x, int y)
{
	cout << "Mouse moved at "
		<< "(" << x << "," << y << ")" << endl;
}

void entry(int state)
{
	if (state == GLUT_ENTERED)
		cout << "Mouse Entered" << endl;
	else
		cout << "Mouse Left" << endl;
}

int main(int argc, char *argv[])
{
	glutInit(&argc, argv);

	glutInitWindowPosition(200, 200);
	glutInitWindowSize(200, 200);

	glutCreateWindow("03 - Mouse Input");

	glutDisplayFunc(display);
	glutMouseFunc(mouse);
	glutMotionFunc(motion);
	glutPassiveMotionFunc(motionPassive);
	glutEntryFunc(entry);

	if (!init())
		return 1;

	glutMainLoop();

	return 0;
}