begin process at 2012 02 07 09:02:11
  Trouver un code source :
 
dans
 
Accueil > 

Code

 > 

API

 > CJOYPAD

CJOYPAD


 Information sur la source

Note :
7,5 / 10 - par 2 personnes
7,50 / 10

  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

  • 8

  • 9

  • 10
Catégorie :API Niveau :Débutant Date de création :09/01/2004 Date de mise à jour :11/01/2004 14:13:03 Vu / téléchargé :4 126 / 288

Auteur : sebseb42

Ecrire un message privé
Site perso
Commentaire sur cette source (9)
Ajouter un commentaire et/ou une note

 Description

Cet une classe pour tout ceux qui serais desireux d'exploiter leur JoyPad dans un jeux de leur creation ou autre application, et ce sans se prendre la tete a utiliser DirectInput

Cette classe utiliser l'API contenu dans winmm.lib et fonctionne parfaitement bien avec mon JoyPad Microsoft SideWinder Plug & Play Game Pad (USB)


 Conclusion

Il y a aussi un main de test et le projet de tester de la classe (VS .NET) comme ca vous pourrez voir tout de suite si c'est compatible avec votre materiel ou non (theoriquement ca l'est car Microsoft a assez bien ecrit son API =))

Aussi sachez que ceci n'est qu'une alternative, et les bouquins disent que c'est deconseiller d'utiliser ceci pour developper des applications a hautes performance.

 Fichier Zip

Les Membres Club peuvent télécharger directement un fichier contenu dans le zip sans télécharger le zip en entier !

Télécharger le zip


 Sources du même auteur

Source avec Zip Source avec une capture KONKYO (ASM COMPILER, DECOMPILER, DEBUGGER, MACHINE VIRTUELL...
Source avec Zip CSOCKET
MSGBOX DEBUG
CONSOLE COLOR
Source avec Zip CROCOLIB

 Sources de la même categorie

Source avec Zip WIN32 TLS LENT par dguilmain
Source avec Zip VIDER ELEMENTS DE CORBEILLE WINDOWS7 (WIN64) par BruNews
Source avec Zip Source avec une capture FIND TEXT (WIN64) par BruNews
Source avec Zip DELETE DIRECTORY (WIN64) par BruNews
Source avec Zip ENUM DIRECTORY (WIN64) par BruNews

Commentaires et avis

Commentaire de vecchio56 le 10/01/2004 23:46:07 administrateur CS

Je trouve que ta source est plutot étrange
-Tout d'abord dans la class CJoystick tu as une variable JOYINFO _joy_info donc je ne vois pas pourquoi tu écris quelque chose comme _joy_info->wXpos (qui génère évidemment une erreur à la compilation) au lieu de _joy_info.wXpos.
-Tu utilises une fonction GetJoyState() qui n'est définit nulle part

Commentaire de sebseb42 le 11/01/2004 14:02:44

winmm.lib

Commentaire de vecchio56 le 11/01/2004 15:07:37 administrateur CS

eh bien?

Commentaire de vecchio56 le 11/01/2004 15:27:15 administrateur CS

si tu préfères la fonction GetJoyState() n'est défini nulle part
J'ai une question simple: est-ce que tu as réussi à compilé le code que tu fournis?

Commentaire de Gerald le 13/01/2004 13:30:52

hihi :)

Commentaire de sebseb42 le 13/01/2004 18:08:30

oui biensure, mais mon code etais une mauvaise version, je suis dsl, mais je l'ai mis a jour, tu peux le reprendre mnt et il compile et fonctionne

Commentaire de rainiou le 17/10/2006 11:28:43

Impecable à la compilation! y a plus qu'a tester!
sinon, comment ajouter d'autres boutons? par winmm.lib?

Commentaire de killyox666 le 01/11/2006 14:51:01

Ce code fonctionne à merveille. Personnellement, je l'utilise avec un "DancePad" (tapis de dance pour Dance Dance Revolution, Stepmania, ...) et je n'ai eu aucun problème. Les fonctions sont très simples à utiliser, merci bien sebseb42 ;)

Commentaire de mathieu_robidoux le 02/11/2006 00:04:59

moi sa me donne :

joyDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall CJoystick::~CJoystick(void)" (??1CJoystick@@QAE@XZ)
joyDlg.obj : error LNK2001: unresolved external symbol "public: int __thiscall CJoystick::GetRButtonState(void)" (?GetRButtonState@CJoystick@@QAEHXZ)
joyDlg.obj : error LNK2001: unresolved external symbol "public: int __thiscall CJoystick::GetLButtonState(void)" (?GetLButtonState@CJoystick@@QAEHXZ)
joyDlg.obj : error LNK2001: unresolved external symbol "public: int __thiscall CJoystick::GetYButtonState(void)" (?GetYButtonState@CJoystick@@QAEHXZ)
joyDlg.obj : error LNK2001: unresolved external symbol "public: int __thiscall CJoystick::GetXButtonState(void)" (?GetXButtonState@CJoystick@@QAEHXZ)
joyDlg.obj : error LNK2001: unresolved external symbol "public: int __thiscall CJoystick::GetBButtonState(void)" (?GetBButtonState@CJoystick@@QAEHXZ)
joyDlg.obj : error LNK2001: unresolved external symbol "public: int __thiscall CJoystick::GetAButtonState(void)" (?GetAButtonState@CJoystick@@QAEHXZ)
joyDlg.obj : error LNK2001: unresolved external symbol "public: int __thiscall CJoystick::GetDownButtonState(void)" (?GetDownButtonState@CJoystick@@QAEHXZ)
joyDlg.obj : error LNK2001: unresolved external symbol "public: int __thiscall CJoystick::GetUpButtonState(void)" (?GetUpButtonState@CJoystick@@QAEHXZ)
joyDlg.obj : error LNK2001: unresolved external symbol "public: int __thiscall CJoystick::GetRightButtonState(void)" (?GetRightButtonState@CJoystick@@QAEHXZ)
joyDlg.obj : error LNK2001: unresolved external symbol "public: int __thiscall CJoystick::GetLeftButtonState(void)" (?GetLeftButtonState@CJoystick@@QAEHXZ)
joyDlg.obj : error LNK2001: unresolved external symbol "public: int __thiscall CJoystick::AcquireJoyState(void)" (?AcquireJoyState@CJoystick@@QAEHXZ)
joyDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall CJoystick::CJoystick(void)" (??0CJoystick@@QAE@XZ)
Debug/joy.exe : fatal error LNK1120: 13 unresolved externals
Error executing link.exe.

Et oui, g mi la librairie

 Ajouter un commentaire




Nos sponsors


Sondage...

Comparez les prix

CalendriCode

Février 2012
LMMJVSD
  12345
6789101112
13141516171819
20212223242526
272829    

Consulter la suite du CalendriCode

 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 1,794 sec (3)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales