Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

TakeControls() With Shift + Arrows?

Acidic Tamale
Registered User
Join date: 15 Oct 2006
Posts: 22
05-10-2007 21:23
Anyone know of a method using TakeControls where I can take Shift + Left Arrow -or- Right Arrow and have it fire the control event?

Thanks in advance.
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
05-10-2007 23:57
From: Acidic Tamale
Anyone know of a method using TakeControls where I can take Shift + Left Arrow -or- Right Arrow and have it fire the control event?

Thanks in advance.


Take controls can only cater for the following

CONTROL_FWD forward control (W or up arrow)
CONTROL_BACK back control (S or down arrow)
CONTROL_LEFT move left control (shift + A or left arrow)
CONTROL_RIGHT move right control (shift + D or right arrow)
CONTROL_UP up control (E or PgUp)
CONTROL_DOWN down control (C or PgDn)
CONTROL_ROT_LEFT rotate left control (A or left arrow)
CONTROL_ROT_RIGHT rotate right control ( D or right arrow)
CONTROL_LBUTTON left mouse button control
CONTROL_ML_LBUTTON left mouse button control with the avatar in MouseLook

So I'm afraid you cannot detect the shift key being pressed.
_____________________
I'm back......
Tiarnalalon Sismondi
Registered User
Join date: 1 Jun 2006
Posts: 402
05-11-2007 05:15
From: Newgate Ludd
Take controls can only cater for the following

CONTROL_FWD forward control (W or up arrow)
CONTROL_BACK back control (S or down arrow)
CONTROL_LEFT move left control (shift + A or left arrow)
CONTROL_RIGHT move right control (shift + D or right arrow)

CONTROL_UP up control (E or PgUp)
CONTROL_DOWN down control (C or PgDn)
CONTROL_ROT_LEFT rotate left control (A or left arrow)
CONTROL_ROT_RIGHT rotate right control ( D or right arrow)
CONTROL_LBUTTON left mouse button control
CONTROL_ML_LBUTTON left mouse button control with the avatar in MouseLook

So I'm afraid you cannot detect the shift key being pressed.


I think that part in bold was what he was needing :)
Acidic Tamale
Registered User
Join date: 15 Oct 2006
Posts: 22
05-11-2007 17:41
hehe indeed it was. Thank you. Was looking around, completely missed those hehe.
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
05-12-2007 03:07
From: Tiarnalalon Sismondi
I think that part in bold was what he was needing :)



LOL, yep, I was thinking SHIFT on its own for some reason!
_____________________
I'm back......