Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

Dual Analog continued

Sign in to follow this  


[journal dump]

i'm not actually going to do any work, i'm just going to drop some reminders in here for now. i'm going to need to read and highlight important parts of the joystick sample in order to progress. i'm also going to eventually have to add timing support to make the avatar move around at a consistant rate. [away]

ok, me and jenn went and did some more work on the project. what i wanted to do was to do all of the checking for the joysticks and get that out of the way. i wasn't really sure what i was doing, so i just sorta stabbed at it and copied what was in the sample. we ended up forgetting to call the initDirectDraw command in Main, and tried to use a nonexistant command (in our program) called UpdateControls - which was used in the sample but wasn't needed in ours.

after we got all the errors out, we tested it. with no joystick plugged in, it popped up an error message as we expected it to (and jenn was happy!). when we plugged in the joystick, we didn't get an error message - again, just as we expected. something went right!

so the next thing i would like to do is to add an active check to make sure our joystick is still hooked up, in the main loop. something like CheckForJoystick and it will say true (its still hooked up) or false (its not there now) and we'll turn the disconnected sticker on and off. as we plug in and unplug the joystick (poor computer!) it will show up right in the program.

after that, we can start getting information out of the joystick and start moving the avatar and the crosshair pictures around. whee! [gone] [edit: added some descriptive comments to the source code. should probably be doing that as we go along so that we don't forget... ]
Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!