Weird problem with my mouse pointer always showing...
by Nicolai Dutka · in Torque Game Engine Advanced · 03/31/2009 (5:17 pm) · 8 replies
I didn't touch any code at all that had anything to do with my canvas or the cursor, but suddenly the mouse pointer is ALWAYS showing...
I went through every bit of script changes I made and cannot find ANY reason for it...
I even went into my game.cs where it spawns the player and added this line:
if(canvas.isCursorOn()) hideCursor();
When I loaded the level, the pointer disappeared... for 1 second, then it came back on...
I went through every bit of script changes I made and cannot find ANY reason for it...
I even went into my game.cs where it spawns the player and added this line:
if(canvas.isCursorOn()) hideCursor();
When I loaded the level, the pointer disappeared... for 1 second, then it came back on...
#2
03/31/2009 (5:52 pm)
The pitch and yaw controls on my joystick are not working either. I don't know if this is related or not because I can't move the camera at all in normal play mode...//Joystick0 moveMap.bind( joystick0, button0, mouseFire ); moveMap.bind( joystick0, button1, jump); moveMap.bind( joystick0, button2, altTrigger ); moveMap.bind( joystick0, button3, activate); moveMap.bind( joystick0, xaxis, "D", "0.23 -0.23", gamePadMoveX ); moveMap.bind( joystick0, yaxis, "D", "0.23 -0.23", gamePadMoveY ); moveMap.bind( joystick0, zaxis, "D", "0.23 -0.23", gamePadPitch ); moveMap.bind( joystick0, rzaxis, "D", "0.23 -0.23", gamePadYaw ); // End Joystick0
#3
04/01/2009 (12:08 am)
If you happen to have updated your PlayGui.gui file with the GUI editor, you might want to check it to make sure that everything is setup correctly (open it in a text editor and look at the structure). The GUI editor is somewhat flaky and I've had a lot of issues when modifying the PlayGui and saving it from the GUI editor, and those issues cause strange input device behavior like that. So now I only edit it manually.
#4
The ONLY thing I did was add a simple GuiMLTextCtrl to my playGui.gui and save it.
I replaced the file and manually edited the thing and we're good to go!
THANKS A TON!!!
04/01/2009 (7:40 am)
OMG!! You're exactly right!The ONLY thing I did was add a simple GuiMLTextCtrl to my playGui.gui and save it.
I replaced the file and manually edited the thing and we're good to go!
THANKS A TON!!!
#5
Problem is, the 'something' they do is waaaay wrong...
The instant I touch my right analog stick, the camera starts spinning kinda slow, but will NOT stop.. It's completely useless... I can get some fraps footage if anyone wants to see.
04/01/2009 (7:42 am)
Oh ya, the pitch/yaw on my controller actually do something now too!Problem is, the 'something' they do is waaaay wrong...
The instant I touch my right analog stick, the camera starts spinning kinda slow, but will NOT stop.. It's completely useless... I can get some fraps footage if anyone wants to see.
#6
I went to my control panel-> game controllers, and verified the controller settings are absolutely perfect.
04/01/2009 (7:55 am)
Not only does camera constantly spin, but player constantly moves.I went to my control panel-> game controllers, and verified the controller settings are absolutely perfect.
#7
http://nicolaidutka.archongames.com/storage/video/ControllerTest.avi
04/01/2009 (8:06 am)
Here's a video of the problem. In the first few frames, I have the character just standing there, then I push a button, ANY button, on my controller, and the rest is ALL automatic... the camera movement and player movement are going completely by themselves without me touching anything:http://nicolaidutka.archongames.com/storage/video/ControllerTest.avi
#8
The keyboard/mouse can still control the character, but the constant spinning/moving won't go away...
04/01/2009 (8:08 am)
OH! Half way through the video, I try to regain control of the character using the keyboard/mouse which you should easily notice, but shold also notice it doesn't work.The keyboard/mouse can still control the character, but the constant spinning/moving won't go away...
Torque 3D Owner Nicolai Dutka
Also, with the console open, I can tell the cursor to hide with: hideCursor();
But then when I close the console, it pops back on...