Mouse issue
by Sean Richards · in Torque Game Engine · 01/21/2007 (1:45 pm) · 3 replies
I think for some reason the mouse has detached itself from the game. Here is my example.
Normally I run around and everything is ok. the mouse controls pitch and yaw. I can look around with the mouse.
Broken:
I can no longer use the mouse to fire the weapon, look around or anything else. any suggestions?
Normally I run around and everything is ok. the mouse controls pitch and yaw. I can look around with the mouse.
Broken:
I can no longer use the mouse to fire the weapon, look around or anything else. any suggestions?
About the author
#2
Acutally, if you use to the gui editor for making changes to the UI. The UI changes things and remove the following commands
no cursor = "1";
reinsert that command and it will return mouse control to the ui while in game.
Example:
PlayGui:
01/22/2007 (1:00 pm)
Quote:This is a weird bug that popped up when I made minimal changes to a few GUIs. Have you made any changes recently?
Try this:
Open up the console and type movemap.push() while in the game. If that gives you control of the mouse, then I probably can show you where to fix this bug.
Acutally, if you use to the gui editor for making changes to the UI. The UI changes things and remove the following commands
no cursor = "1";
reinsert that command and it will return mouse control to the ui while in game.
Example:
PlayGui:
//--- OBJECT WRITE BEGIN ---
new GameTSCtrl(PlayGui) {
canSaveDynamicFields = "0";
Profile = "GuiContentProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "0 0";
Extent = "800 600";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
hovertime = "1000";
applyFilterToChildren = "1";
cameraZRot = "0";
forceFOV = "0";
noCursor = "1"; // <--tends to remove this call.
#3
Do you know why this happens and how I might avoid it?
Joel
02/03/2007 (10:48 am)
Thanks Sean, I had this same problem. Do you know why this happens and how I might avoid it?
Joel
Employee Michael Perry
ZombieShortbus
Try this:
Open up the console and type movemap.push() while in the game. If that gives you control of the mouse, then I probably can show you where to fix this bug.