Page 1 of 1

How to Make Keyboard Effective Only for FREEPIE

Posted: Tue Dec 25, 2018 4:19 am
by zhu8888rui
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?

Re: How to Make Keyboard Effective Only for FREEPIE

Posted: Tue Dec 25, 2018 4:24 am
by zhu8888rui

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)

Re: How to Make Keyboard Effective Only for FREEPIE

Posted: Sun Sep 08, 2019 4:11 pm
by marcob
Hi . What this code can do? Thanks

Re: How to Make Keyboard Effective Only for FREEPIE

Posted: Mon Nov 25, 2019 6:35 am
by konstantin_lozev
I am not sure if FreePIE can block the keyboard press. I have had success with GlovePIE, though. The command there is "swallow", if I remember well. Have a look at the GlovePIE wiki.

Re: How to Make Keyboard Effective Only for FREEPIE

Posted: Thu Nov 28, 2019 6:29 am
by CyberVillain
Freepie do not support blockign other programs from reading keys. Its been on the todo for a long time