.| Autor | Beitrag |
|---|---|
|
000 26.05.2002, 19:05 [RMen]OneStone |
Hi, ich hab' mal für Megge ein kleines Proggy gemacht, mit dem man die Maus mit dem Joystick steuern kann, nur klicken funktioniert noch nicht. Einfach die ge-.rar-te Datei ausführen und lossteuern =) Joystick 2 Mouse (Verknüpfung speichern unter) Hier der Source, wer Bugs / Fehler entdeckt bitte posten: Das einzige, was ich noch suche, ist, wie man einen Mausklick simuliert. --georg-wicherski@pixel-house.net | http://www.pixel-house.net/ - Coding Resource| http://www.google.de/ Dieser Beitrag wurde am 26.05.2002 um 19:06 von [RMen]OneStone bearbeitet. |
|
Profil || Suche |
|
001 26.05.2002, 19:21 Retro |
das mit der maus geht doch einfach =) so, und jetzt cya, muss auf abschlussfahrt :D --shielding people from their own stupidity is an evolutionary step backwards anyway. /* God is dead!............Nietzsche */ Dieser Beitrag wurde am 26.05.2002 um 19:21 von Retro bearbeitet. |
|
Profil || Suche |
|
002 26.05.2002, 19:51 [RMen]OneStone |
Danke, geupdter Code sieht jetzt so aus: georg-wicherski@pixel-house.net | http://www.pixel-house.net/ - Coding Resource| http://www.google.de/ |
|
Profil || Suche |
|
003 27.05.2002, 14:43 (someone) |
wie kann ich den cooliehat zum scrollen benutzen ? :D -- |
|
Profil || Suche |
|
004 27.05.2002, 16:22 [RMen]OneStone |
Sorry, ich weiss leider nicht was ein Cooliehat ist. Ein Kühl-Hut? =) --georg-wicherski@pixel-house.net | http://www.pixel-house.net/ - Coding Resource| http://www.google.de/ |
|
Profil || Suche |
|
005 27.05.2002, 17:23 Megge |
ich würds so machen: jeder dieser 8 richtungen bei diesem mini-joystick aufm joystick hat ja nen namen: ich weiss natürlich nicht, was für events es alles gibt, aber sowas sollte relativ leicht sein -- |
|
Profil || Suche |
|
006 27.05.2002, 19:55 (someone) |
du weißt nicht zufällig die namen? irgendeine verwendung muss es doch auch für die z-achse geben... -- |
|
Profil || Suche |
|
007 27.05.2002, 23:19 Joker |
lol, das ist ja voll der Spass =) ich hab mal nach einer liste gesucht mit den befehlen wie mouse_event(MOUSEEVENTF_LEFTDOWN, pPos.x, pPos.y, 0, 0); aber leider nichts brauchbares gefunden (tastaturbefehle) ... ich hab wohl mit den falschen wörter gesucht... kann mir jemand ein tip geben? (nein ich hab kein buch) ---=[ Aigu.ch ]=- |
|
Profil || Suche |
|
008 27.05.2002, 23:33 Leviathan |
also zu der funktion mouse_event steht etwas in der dokumentation zu msvc++, da steht auch eine kleine liste mit möglichen arten der aktionen (z.b. MOUSEEVENTF_LEFTDOWN) --Entities: HL | HL² |
|
Profil || Suche |
|
009 28.05.2002, 14:55 [RMen]OneStone |
mouse_event Windows NT: This function has been superseded. Use SendInput instead. VOID mouse_event( dx dwExtraInfo Remarks If MOUSEEVENTF_ABSOLUTE value is specified, dx and dy contain normalized absolute coordinates between 0 and 65,535. The event procedure maps these coordinates onto the display surface. Coordinate (0,0) maps onto the upper-left corner of the display surface, (65535,65535) maps onto the lower-right corner. If the MOUSEEVENTF_ABSOLUTE value is not specified, dx and dy specify relative motions from when the last mouse event was generated (the last reported position). Positive values mean the mouse moved right (or down); negative values mean the mouse moved left (or up). Relative mouse motion is subject to the settings for mouse speed and acceleration level. An end user sets these values using the Mouse control panel application. An application obtains and sets these values with theSystemParametersInfo function. The system applies two tests to the specified relative mouse motion when applying acceleration. If the specified distance along either the x or y axis is greater than the first mouse threshold value, and the mouse acceleration level is not zero, the operating system doubles the distance. If the specified distance along either the x or y axis is greater than the second mouse threshold value, and the mouse acceleration level is equal to two, the operating system doubles the distance that resulted from applying the first threshold test. It is thus possible for the operating system to multiply relatively-specified mouse motion along the x or y axis by up to four times. Once acceleration has been applied, the system scales the resultant value by the desired mouse speed. Mouse speed can range from 1 (slowest) to 20 (fastest) and represents how much the pointer moves based on the distance the mouse moves. The default value is 10, which results in no additional modification to the mouse motion. The mouse_event function is used to synthesize mouse events by applications that need to do so. It is also used by applications that need to obtain more information from the mouse than its position and button state. For example, if a tablet manufacturer wants to pass pen-based information to its own applications, it can write a dynamic-link library (DLL) that communicates directly to the tablet hardware, obtains the extra information, and saves it in a queue. The DLL then calls mouse_event with the standard button and x/y position data, along with, in the dwExtraInfo parameter, some pointer or index to the queued extra information. When the application needs the extra information, it calls the DLL with the pointer or index stored in dwExtraInfo, and the DLL returns the extra information. Windows CE: Windows CE does not support the MOUSEEVENTF_WHEEL constant in the dwFlags parameter. QuickInfo georg-wicherski@pixel-house.net | http://www.pixel-house.net/ - Coding Resource| http://www.google.de/ |
|
Profil || Suche |
|
010 28.05.2002, 14:57 [RMen]OneStone |
Ich kann es leider nicht ausprobieren (kein Z-Joystick), aber es gibt eine MM_JOY1ZMOVE, welche auf Bewegungen "in die Tiefe" reagiert, der obige Code ließe sich also einfach mit einem case MM_JOY1ZMOVE: erweitern. LOWORD(lParam) enthälz dann die Z-Position. --georg-wicherski@pixel-house.net | http://www.pixel-house.net/ - Coding Resource| http://www.google.de/ |
|
Profil || Suche |
|
011 28.05.2002, 20:00 thinktank |
OneStone, glaubst du etwa wirklich, dass MS so blöd ist ? ( bezogen auf die Autorenversion - Warnung ) OK genug des Gelästers =) : Ich verstehe diese Zeilen nicht :
Die if Abfragen fragen sicher ab, ob der Cursor sich nach rechts oder nach links bewegen soll ( bzw. nach unten / oben ). Aber warum dieses mega-Gemurkse dort ? --Dieser Beitrag wurde am 29.05.2002 um 00:18 von thinktank bearbeitet. |
|
Profil || Suche |
|
012 29.05.2002, 15:30 [RMen]OneStone |
O.K. georg-wicherski@pixel-house.net | http://www.pixel-house.net/ - Coding Resource| http://www.google.de/ |
|
Profil || Suche |

