-
Hi,
can I also transfer the keybinding (in "saved_command_macros.json") to the controller (Trustmaster T300)?
e.g .:
{
"action": "Pit Request Toggle",
"key": "KEY_Q"
},
to
{
"action": "Pit Request Toggle",
"wheel": "BUTTON_4"
}
Tnx for anwers
clintwood60
-
Unfortunately sending controller button presses isn't supported. I did want to implement it but it's hard - each game uses controllers in a different way and it can even vary by controller. So (for now at least) it's keyboard only.
I've made some significant changes to how the macros stuff works to simplify them and make them a bit more powerful - will be in the next released (see post 1 in this thread for the WIP documentation)
-
Can I also transfer NUMPAD 8 (not arrow UP)?
THx
-
Hello guys,
i also want to assign a numpad key to an action, can you tell me please the syntax for that?
Found it via tiral and error:
you just have to use the ascii numbers for the specific key. In the case of numpad0 its the number 96 without the "key_"
Code:
{
"action": "Center HMD",
"key": "96"
},
-
have you tried using NUMPAD0 to NUMPAD9? That's how they're mapped in the code which generates keyboard input - it should be possible to do it like this:
Code:
{
"action": "Center HMD",
"key": "NUMPAD0"
}
you might need to ensure numlock is on for this to work
-
Don`t know if i tried Numpad0 or key_Numpad0, there was quite a few combinations before i tried the ascii code.
As long as this works i`m happy :)
Thanks for helping out and have a nice new years eve
-
looking at the code, i honestly can't see how the ascii code could actually work
-
Great :D
Don`t think about it, just accept...
When Life has chocolate to offer you better take it :)
-
Hi,
What would I need to add to the json file to bring macros to rF2?
I have tried adding
{
"description": "rFactor 2 command mappings - these are the key assignments in the Controller menu -> Game",
"gameDefinition": "rFactor 2 (64 bit)",
"keyBindings": [{
"action": "Open Chat",
"key": "KEY_T"
},
and added
{
"description": "rf2 version",
"gameDefinition": "rFactor 2 (64 bit)",
"actionSequence": ["Open Chat", "{FREE_TEXT}good pass", "ENTER"],
"keyPressTime": 10,
"waitBetweenEachCommand": 200
},
but the console is showing "No macro voice triggers defined for the current game" on loading. Loading as Race Room shows the macros loading?
What I am ultimately looking to do is to change my admin status and make admin calls in game such as remove penalties from other drivers etc from voice commands so once I can get the "good pass" test above working I'll be sorted.
Thanks
-
Game definition should be RF2_64BIT