This site requires JavaScript, please enable it in your browser!
Greenfoot back
MikeReilly22
MikeReilly22 wrote ...

2012/1/14

GamePad not finding package

MikeReilly22 MikeReilly22

2012/1/14

#
I'm attempting the GamePads, and have successfully run the GamePadTester. However, when I try to run the Zombieshot or Pacman games, I get an error that it can't find the "package net.java.games.input" although the folders are there. Suggestions? Thanks!
MikeReilly22 MikeReilly22

2012/1/18

#
Self-answer, persistence and experimentation pays off! Since the PacMan could not find the net.java.games.input, but I saw it there, I decided to just replace the gamepadlib folder with the one from the GamePadTester which did work. This solved the recognition problem. Then there were two methods in PacMan that were improperly overriding the move method by narrowing the access from public to private, so I changed them to public. Then, it worked! So, copy the gamepadlib folder from GamePadTester on top of the PacManGamePad folder. And, don't forget to rename the jinput-dx8_64 to jinput-dx8-64 in the main folder (when it says it can't find it, you'll see). I will try to document this with more clarity.
You need to login to post a reply.