Cyberpunk 2077

Cyberpunk 2077

View Stats:
FluffyPotato Sep 21, 2023 @ 8:51am
Cyberpunk detects my keyboard as a controller
For some reason Cyberpunk changes the keys it shows to controller the moment I press anything on my keyboard. I have no controller connected. Any way I can force it to display only keyboard inputs or some other way to make it stop doing this?
Originally posted by Your Waifu:
This issue is fixed in 2.01

Thanks to the @jason098 from LGD discord who found a solution to the problem with the layout switching and lack of action for some buttons:
1. First, backup Cyberpunk2077.exe.
2. Use this command
echo '2C45C6: EB' | xxd -r - Cyberpunk2077.exe
or change 74 to EB by 0x2C45C6 offset in hex editor

If you previously applied my fix, it seems like it should work, but the best thing to do is to restore the exe from backup

and thanks to the @Saancreed from LGD discord for command.


Old fix (fixes the glyph update, but the game keeps thinking it's working with a gamepad and because of this, the crouch, quick melee and dodge buttons don't work):
Here is a temporary fix (at least for Linux users) that removes the glyph update (so when playing with a gamepad the buttons will be from the keyboard)
First of all make a backup of Cyberpunk2077.exe
And need to replace
e8 1f 00 00 00 48 8b 5c 24 40 48 83
to
90 90 90 90 90 48 8b 5c 24 40 48 83
in Cyberpunk2077.exe via hex editor (Bless or ImHex for example)
or use this command (hope you have perl)
perl -pi -e 's/\xe8\x1f\x00\x00\x00\x48\x8b\x5c\x24\x40\x48\x83/\x90\x90\x90\x90\x90\x48\x8b\x5c\x24\x40\x48\x83/g' Cyberpunk2077.exe

Thanks to LGD discord user @Sid for help with converting this to a perl command

< >
Showing 151-165 of 222 comments
Wyrdsmyth Sep 24, 2023 @ 7:10am 
Can confirm the hex edit fix works, thank you :steamhappy:
[NL]Ben Sep 24, 2023 @ 7:25am 
Originally posted by Your Waifu:
Thanks to the @jason098 from LGD discord who found a solution to the problem with the layout switching and lack of action for some buttons:
1. First, backup Cyberpunk2077.exe.
2. Use this command
echo '2C45C6: EB' | xxd -r - Cyberpunk2077.exe
or change 74 to EB by 0x2C45C6 offset in hex editor

If you previously applied my fix, it seems like it should work, but the best thing to do is to restore the exe from backup

and thanks to the @Saancreed from LGD discord for command.


Old fix (fixes the glyph update, but the game keeps thinking it's working with a gamepad and because of this, the crouch, quick melee and dodge buttons don't work):

Thanks to LGD discord user @Sid for help with converting this to a perl command[/strike]


Originally posted by Wyrdsmyth:
Can confirm the hex edit fix works, thank you :steamhappy:


Originally posted by Sagiri:
Originally posted by Your Waifu:
Thanks to the @jason098 from LGD discord who found a solution to the problem with the layout switching and lack of action for some buttons:
1. First, backup Cyberpunk2077.exe.
2. Use this command
echo '2C45C6: EB' | xxd -r - Cyberpunk2077.exe
or change 74 to EB by 0x2C45C6 offset in hex editor

you have no idea how much i love you and @jason098 right now.

Uh, which line should the hexedit be at? I cant find the value 0x2C45C6.
There is a line which starts with 74 but that is on 035B8670.

Using GHex (and considering the writing I assume Cyberpunk2077.exe as the source).

The echo does zip for me

Edit: Bless Hex Editor also doesn t give me the right spot
Last edited by [NL]Ben; Sep 24, 2023 @ 7:41am
Cracky-chan Sep 24, 2023 @ 7:43am 
Originally posted by Jay :
I'm having this issue with Windows 11, is there a fix? Oh Cyberpunk I have not played in a long time, was hoping the bugs were fixed in 2.0. :(

Jay, if you're on Windows the problem should be much easier to fix, no need to edit the EXE. You can disable Steam Input and/or Steam Overlay and restart. That fixes it for a lot of people. If not you can add -ignoreGanmepad to the launch options which should prevent Cyberpunk from seeing any gamepads. Generally speaking rebooting your PC without any gamepads connected then restarting the game fixes it for windows.
Your Waifu Sep 24, 2023 @ 8:26am 
Originally posted by NLBen:

Uh, which line should the hexedit be at? I cant find the value 0x2C45C6.
There is a line which starts with 74 but that is on 035B8670.

Using GHex (and considering the writing I assume Cyberpunk2077.exe as the source).

The echo does zip for me

Edit: Bless Hex Editor also doesn t give me the right spot
Here is the byte sequence if you can't find it by offset
74 09 E8 C7 A8 75 00
[NL]Ben Sep 24, 2023 @ 8:39am 
Originally posted by Your Waifu:
Originally posted by NLBen:

Uh, which line should the hexedit be at? I cant find the value 0x2C45C6.
There is a line which starts with 74 but that is on 035B8670.

Using GHex (and considering the writing I assume Cyberpunk2077.exe as the source).

The echo does zip for me

Edit: Bless Hex Editor also doesn t give me the right spot
Here is the byte sequence if you can't find it by offset
74 09 E8 C7 A8 75 00

Very much thanks, the hexedit solved the problem - or at least it seems so for now with a quick check.
W4RP!G [CZ] Sep 24, 2023 @ 8:57am 
Wait so its only happening on Linux? I swear to god you people need to describe issues better...
xrogaan Sep 24, 2023 @ 9:16am 
Originally posted by W4RP!G CZ:
Wait so its only happening on Linux? I swear to god you people need to describe issues better...
No, it doesn't. But windows users have workarounds that do no works when the game runs under a Linux OS.
Az Sep 24, 2023 @ 12:52pm 
Originally posted by Bobbragby:
unfortunately neither the echo/xxd or perl commands worked for me, but thanks for your hard work at troubleshooting. From threads here/on Reddit, seems like some have the more-easily-fixable problem solely in game, whereas some have the issue immediately at the menu like myself.

PopOS 22.04, Steam, Proton Experimental

when you used the perl command, did you open a terminal from within the folder where your 2077.exe was? Like in Fedora I can navigate to the folder, right click on an open space in said folder and choose "Open Terminal Here" so that I don't have to try and navigate to said folder via console commands. Then paste the entire perl command in that terminal. It's what worked for me.
Laurence5905 Sep 24, 2023 @ 1:26pm 
Originally posted by xrogaan:
Originally posted by W4RP!G CZ:
Wait so its only happening on Linux? I swear to god you people need to describe issues better...
No, it doesn't. But windows users have workarounds that do no works when the game runs under a Linux OS.

What workarounds are those? Because I'm on Windows 10 and I'm having this problem and the only workaround I've found is to actually plug in an XBox controller, then spam the crouch button a few times, then immediately spam the crouch button on my keyboard and that seems to trick Cyberpunk into using the keyboard again.

But then as soon as I load a savegame, we're right back to where we started.

So do you have a better workaround? One that will work even after I load a savegame?

Thanks,
AquaDuck Sep 24, 2023 @ 1:31pm 
Originally posted by Your Waifu:
Thanks to the @jason098 from LGD discord who found a solution to the problem with the layout switching and lack of action for some buttons:
1. First, backup Cyberpunk2077.exe.
2. Use this command
echo '2C45C6: EB' | xxd -r - Cyberpunk2077.exe
or change 74 to EB by 0x2C45C6 offset in hex editor

If you previously applied my fix, it seems like it should work, but the best thing to do is to restore the exe from backup

and thanks to the @Saancreed from LGD discord for command.


Old fix (fixes the glyph update, but the game keeps thinking it's working with a gamepad and because of this, the crouch, quick melee and dodge buttons don't work):
Here is a temporary fix (at least for Linux users) that removes the glyph update (so when playing with a gamepad the buttons will be from the keyboard)
First of all make a backup of Cyberpunk2077.exe
And need to replace
e8 1f 00 00 00 48 8b 5c 24 40 48 83
to
90 90 90 90 90 48 8b 5c 24 40 48 83
in Cyberpunk2077.exe via hex editor (Bless or ImHex for example)
or use this command (hope you have perl)
perl -pi -e 's/\xe8\x1f\x00\x00\x00\x48\x8b\x5c\x24\x40\x48\x83/\x90\x90\x90\x90\x90\x48\x8b\x5c\x24\x40\x48\x83/g' Cyberpunk2077.exe

Thanks to LGD discord user @Sid for help with converting this to a perl command

This actually made it worse for me, it shows the glyphs earlier than before and now it acts as if I'm trying to use a controller and keyboard at the same time so if I try to walk I can take one or two steps before abruptly stopping for a bit then move a bit again then stopping, etc.
Laurence5905 Sep 24, 2023 @ 1:36pm 
Originally posted by Cracky-chan:
Originally posted by Jay :
I'm having this issue with Windows 11, is there a fix? Oh Cyberpunk I have not played in a long time, was hoping the bugs were fixed in 2.0. :(

Jay, if you're on Windows the problem should be much easier to fix, no need to edit the EXE. You can disable Steam Input and/or Steam Overlay and restart. That fixes it for a lot of people. If not you can add -ignoreGanmepad to the launch options which should prevent Cyberpunk from seeing any gamepads. Generally speaking rebooting your PC without any gamepads connected then restarting the game fixes it for windows.

I'm running this game in GoG Galaxy, so I have no Steam Input to disable. And starting it with -ignoreGamepad does not change anything for me.

So how DO you get this stupid thing to ignore the damn gamepad?!

Alternatively, how do I do that hexedit thing in Windows? Windows doesn't have an xxd command...
Laurence5905 Sep 24, 2023 @ 2:08pm 
Originally posted by Laurence5905:
Originally posted by Cracky-chan:

Jay, if you're on Windows the problem should be much easier to fix, no need to edit the EXE. You can disable Steam Input and/or Steam Overlay and restart. That fixes it for a lot of people. If not you can add -ignoreGanmepad to the launch options which should prevent Cyberpunk from seeing any gamepads. Generally speaking rebooting your PC without any gamepads connected then restarting the game fixes it for windows.

I'm running this game in GoG Galaxy, so I have no Steam Input to disable. And starting it with -ignoreGamepad does not change anything for me.

So how DO you get this stupid thing to ignore the damn gamepad?!

Alternatively, how do I do that hexedit thing in Windows? Windows doesn't have an xxd command...

FINALLY!!! This stupid thing has been driving me nuts for 3 days now! Really breaks the immersion! After editing the hex, it's finally working without thinking I want to use a controller! *whew*

I was able to HexEdit the Cyberpunk2077.exe file on a Windows 10 machine in Notepad++ using a Hex Editor Plugin. Google Notepad++ if you don't already have it... Download and install it...

Once you're in Notepad++, click on the Plugins menu, then click on Plugins Admin. In the Available tab there should be a search box. Type "Hex" into that search box and you should see HEX-Editor v0.9.12 appear. (That version number is current as of today, September 24, 2023. Your version number may vary if it's later than 24-Sep-2023.) Click the check-box to the left of HEX-Editor, and then click the Install button in the upper-right corner of the pop-up window you're in. Follow the on-screen instructions. Notepad++ will close and restart.

Open Windows Explorer and browse to C:\Program Files (x86)\GoG Galaxy\Games\Cyberpunk 2077\bin\x64. Left Click on Cyberpunk2077.exe and then press Ctrl+C and Ctrl+V to make a backup copy of it.

Back in Notepad++, click File, Open, and browse to C:\Program Files (x86)\GoG Galaxy\Games\Cyberpunk 2077\bin\x64 and double-click on Cyberpunk2077.exe.

Click on the Plugins menu, point to HEX-Editor, then click on View in HEX.

Click on the Search menu, click on Find. In the "Find What:" box, type 74 09 E8 C7 A8 75 00 then press Enter

Once you've found that sequence, (verify that 002c45c0 appears in the left-most column of the file) click just to the left of the 74 to place the cursor there, then type EB to change that 74 to an EB. Then type Ctrl+S to save the file.

The next time you run Cyberpunk 2077, it should work perfectly!!!

Thank you to the people who figured out this hack!!!
Last edited by Laurence5905; Sep 24, 2023 @ 2:08pm
MikeTheRat Sep 24, 2023 @ 4:13pm 
Originally posted by Your Waifu:
Thanks to the @jason098 from LGD discord who found a solution to the problem with the layout switching and lack of action for some buttons:
1. First, backup Cyberpunk2077.exe.
2. Use this command
echo '2C45C6: EB' | xxd -r - Cyberpunk2077.exe
or change 74 to EB by 0x2C45C6 offset in hex editor

If you previously applied my fix, it seems like it should work, but the best thing to do is to restore the exe from backup

and thanks to the @Saancreed from LGD discord for command.
This fix worked for Linux. Thanks!
Byteboost Sep 25, 2023 @ 1:27am 
Originally posted by Your Waifu:
Thanks to the @jason098 from LGD discord who found a solution to the problem with the layout switching and lack of action for some buttons:
1. First, backup Cyberpunk2077.exe.
2. Use this command
echo '2C45C6: EB' | xxd -r - Cyberpunk2077.exe
or change 74 to EB by 0x2C45C6 offset in hex editor

If you previously applied my fix, it seems like it should work, but the best thing to do is to restore the exe from backup

and thanks to the @Saancreed from LGD discord for command.


Old fix (fixes the glyph update, but the game keeps thinking it's working with a gamepad and because of this, the crouch, quick melee and dodge buttons don't work):
Here is a temporary fix (at least for Linux users) that removes the glyph update (so when playing with a gamepad the buttons will be from the keyboard)
First of all make a backup of Cyberpunk2077.exe
And need to replace
e8 1f 00 00 00 48 8b 5c 24 40 48 83
to
90 90 90 90 90 48 8b 5c 24 40 48 83
in Cyberpunk2077.exe via hex editor (Bless or ImHex for example)
or use this command (hope you have perl)
perl -pi -e 's/\xe8\x1f\x00\x00\x00\x48\x8b\x5c\x24\x40\x48\x83/\x90\x90\x90\x90\x90\x48\x8b\x5c\x24\x40\x48\x83/g' Cyberpunk2077.exe

Thanks to LGD discord user @Sid for help with converting this to a perl command


IT RUNS!!!! YOU SAVED THE UPDATE - CDRP should give you appreciation!!!!!!
popsUlfr Sep 25, 2023 @ 7:47am 
Originally posted by Your Waifu:
Thanks to the @jason098 from LGD discord who found a solution to the problem with the layout switching and lack of action for some buttons:
1. First, backup Cyberpunk2077.exe.
2. Use this command
echo '2C45C6: EB' | xxd -r - Cyberpunk2077.exe
or change 74 to EB by 0x2C45C6 offset in hex editor

This worked perfectly, thank you very much!
Crouch, dash, mouse+keyboard icons all work.
< >
Showing 151-165 of 222 comments
Per page: 1530 50

Date Posted: Sep 21, 2023 @ 8:51am
Posts: 221