Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
how to block key input?

alireza
Guest
Quote
2020-05-20 21:20:51

Hi to all
How do I block a key(keyboard) input?
For example, I designed a game that runs with Reshade. I sometimes want the keys to the Reshade sofware to work and sometimes not to work. Is such a thing possible?


count2rfeit
Registered User
Quote
2020-05-21 16:02:16

yes

drop a cube somewhere in the scene. you can put it somewhere out of sight. Name in some thing like "Reshade Switch"

add the keys you want to use for Reshade to the cube. (When a key is pressed down do something)

when you want the keys to work - leave the cube visible.
when you want the keys to not work, make the cube invisible.

that's it... hope it helps


Alireza
Guest
Quote
2020-05-21 20:28:30

wrote:
yes

drop a cube somewhere in the scene. you can put it somewhere out of sight. Name in some thing like "Reshade Switch"

add the keys you want to use for Reshade to the cube. (When a key is pressed down do something)

when you want the keys to work - leave the cube visible.
when you want the keys to not work, make the cube invisible.

that's it... hope it helps

Thanks very much.
You have come up with an interesting solution.
But there is a problem. The Reshade program works independently. That is, if we define for Reshade to give us an effect by pressing a key, for example pressing "A" key, even if we follow the method you said, the effect is still applied when we press the A key.
In fact, I want Reshade effects to be not at the user's discretion, but work by defined and change variables.


count2rfeit
Registered User
Quote
2020-05-21 23:04:31

o.k. - sorry it didn't help. I haven't really paid much attention to Reshade. Others that have used it said it worked well, but in their examples I really didn't see much improvement in CC. It seemed to cause some lag as it loaded and dropped frame rate... but that's not what you asked about.

Since Reshade is an injector (as you said, it works independently) , I don't think you can change key presses using CC.

but, Reshade is open source and has it's own language and compiler called Reshade FX... if you search for the reference page, there is a section called "techniques" - this deals with setting true of false values when a key is pressed. If you are familiar with coding, you can set the pass value to turn the key press on or off.

well, there are others that have talked about Reshade on this forum and can probably help you more that I did
you can use this link
https://www.ambiera.com/forum.ph...
and search the forum for "Reshade"


Alireza
Guest
Quote
2020-05-22 02:04:00

wrote:
o.k. - sorry it didn't help. I haven't really paid much attention to Reshade. Others that have used it said it worked well, but in their examples I really didn't see much improvement in CC. It seemed to cause some lag as it loaded and dropped frame rate... but that's not what you asked about.

Since Reshade is an injector (as you said, it works independently) , I don't think you can change key presses using CC.

but, Reshade is open source and has it's own language and compiler called Reshade FX... if you search for the reference page, there is a section called "techniques" - this deals with setting true of false values when a key is pressed. If you are familiar with coding, you can set the pass value to turn the key press on or off.

well, there are others that have talked about Reshade on this forum and can probably help you more that I did
you can use this link
https://www.ambiera.com/forum.ph...
and search the forum for "Reshade"

Thanks again. Thank you for informing me that Rashid is an open source. I will visit the reference site that you introduced and I will search for the problem. I think Reshade can make positive changes to the game. For example, in rainy conditions, you can give the game a reflection effect that reflects on the street floor without reducing performance. However, if you want to do this with CopperCube itself, you have to use water surface, which reduces performance.
But as I said, the problem is that the player can turn this feature on and off by pressing a key, and that sounds ridiculous.
Unless, as you said, we can do something other than define a key with programming


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "I?ternational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact