A bit rusty!

Previous topic - Next topic

MrPlow

Hi Guys

I am having problems getting shift+wasd keys working to detect if shift was depressed...It must be something painfully simple that i am doing wrong....

my code looks like so

keyLeft =key(30)
keyshift = key(42)

if keyleft and keyshift then do something

Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

Schranz0r

Seems right to me...

Do you use the Steam-Version?
Whats the results from Key(), do you debug the outcome?
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

MrPlow

Found and solved a little while ago - Local variables I used were case sensitive - I didn't cop that!
All good once again!
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs