Autor Beitrag
bruce185
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 283

winXP
D7 Ent
BeitragVerfasst: Di 07.10.14 12:51 
Hallo,
ich hab da mal eine Frage und zwar habe ich bei meinem PC einen Wireless XBox 360 Controller für Windows und möchte in Delphi gerne die Tasten vom Controller abfragen.
Ist es überhaupt machbar, wenn ja, wie könnte man das ambesten hinbekommen?

Danke schonmal für die antwort.

MfG
Boldar
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1555
Erhaltene Danke: 70

Win7 Enterprise 64bit, Win XP SP2
Turbo Delphi
BeitragVerfasst: Mi 08.10.14 11:36 
Ich hatte das vor einiger zeit mal gemacht. Dabei hatte ich die XInput.pas verwendet und das dann so in einem Thread abgefragt:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
    XInput.XInputGetState(0, state);
    XInput.XInputGetKeystroke(00, key);
      if (key.Flags=XINPUT.XINPUT_KEYSTROKE_KEYUP) then
  if key.VirtualKey=XINPUT.VK_PAD_DPAD_LEFT then
....
Einloggen, um Attachments anzusehen!
Boldar
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1555
Erhaltene Danke: 70

Win7 Enterprise 64bit, Win XP SP2
Turbo Delphi
BeitragVerfasst: Do 23.10.14 05:55 
Wenn du da noch Probleme mit hast, sag Bescheid - dann schreibe ich da nochmal ausführlicher was zu und Suche den kompletten Quellcode raus.
lg Boldar