How to Make Keyboard Effective Only for FREEPIE
Posted: Tue Dec 25, 2018 4:19 am
For example, I set four keys W, A, S, D. How to make any game and program prohibit using these four keys, only FREEPIE can use them. How to write the code?
The Number One Resource For Stereoscopic 3D Excitement!
https://www.mtbs3d.com/phpbb/
Code: Select all
if keyboard.getKeyDown(Key.W): vJoy[0].setButton(1, True)
else: vJoy[0].setButton(1, False)
if keyboard.getKeyDown(Key.A): vJoy[0].setButton(2, True)
else: vJoy[0].setButton(2, False)
if keyboard.getKeyDown(Key.S): vJoy[0].setButton(3, True)
else: vJoy[0].setButton(3, False)
if keyboard.getKeyDown(Key.D): vJoy[0].setButton(4, True)
else: vJoy[0].setButton(4, False)