Changing Hotkeys In PCSX2 1.0.0 Emulator
#21
I didn't make hypotheses first in my thought.
Generally, when write something, especially logical things, the conclusion move to the top is manner for others I think.
I tried the same file put on pcsx base folder and inis subfolder.
Despite it nothing appears on the log screen and emulog.txt even error messages, so I judged It doesn't work.
if collectly loaded, does the below 'Console.WriteLn("...")' messages show on the log screen?

Code:
void AcceleratorDictionary::Map( const KeyAcceleratorCode& _acode, const char *searchfor )
{
        // Search override mapping at ini file
        KeyAcceleratorCode acode = _acode;
        wxString overrideStr;
        wxAcceleratorEntry codeParser;    //Provides string parsing capabilities
        wxFileConfig cfg(L"", L"", L"" , GetUiKeysFilename(), wxCONFIG_USE_GLOBAL_FILE );
        if( cfg.Read( wxString::FromUTF8(searchfor), &overrideStr) )
        {
                overrideStr = wxString(L"\t") + overrideStr;
                if( codeParser.FromString( overrideStr ) ) // needs a '\t' prefix (originally used for wxMenu accelerators parsing)...
                {
                        //ini file contains alternative parsable key combination for current 'searchfor'.
                        acode = codeParser;
->                      Console.WriteLn(Color_StrongGreen, L"Overriding '%s': assigning %s (instead of %s)",
                       fromUTF8( searchfor ).c_str(), acode.ToString().c_str(), _acode.ToString().c_str());
                }
        }
        // End of overrides section

Therefore I looked at source codes for several hours for get a clue. after that, I notice what I posted.

Anyway, if It works no problem.
And I first wrote "The following are my guessing. If I'm wrong, never mind.".

I'm sorry for the inconvenience.


Edit: I confirmed that it works.
Reply

Sponsored links

#22
(11-18-2013, 06:53 PM)tadatada Wrote: I didn't make hypotheses first in my thought.
Generally, when write something, especially logical things, the conclusion move to the top is manner for others I think.
I tried the same file put on pcsx base folder and inis subfolder.
Despite it nothing appears on the log screen and emulog.txt even error messages, so I judged It doesn't work.
if collectly loaded, does the below 'Console.WriteLn("...")' messages show on the log screen?

Code:
void AcceleratorDictionary::Map( const KeyAcceleratorCode& _acode, const char *searchfor )
{
        // Search override mapping at ini file
        KeyAcceleratorCode acode = _acode;
        wxString overrideStr;
        wxAcceleratorEntry codeParser;    //Provides string parsing capabilities
        wxFileConfig cfg(L"", L"", L"" , GetUiKeysFilename(), wxCONFIG_USE_GLOBAL_FILE );
        if( cfg.Read( wxString::FromUTF8(searchfor), &overrideStr) )
        {
                overrideStr = wxString(L"\t") + overrideStr;
                if( codeParser.FromString( overrideStr ) ) // needs a '\t' prefix (originally used for wxMenu accelerators parsing)...
                {
                        //ini file contains alternative parsable key combination for current 'searchfor'.
                        acode = codeParser;
->                      Console.WriteLn(Color_StrongGreen, L"Overriding '%s': assigning %s (instead of %s)",
                       fromUTF8( searchfor ).c_str(), acode.ToString().c_str(), _acode.ToString().c_str());
                }
        }
        // End of overrides section

Therefore I looked at source codes for several hours for get a clue. after that, I notice what I posted.

Anyway, if It works no problem.
And I first wrote "The following are my guessing. If I'm wrong, never mind.".

I'm sorry for the inconvenience.

When I put the file in his inis folder, and used the shortcuts that worked(e.g. not the conflicting ones) the emulog shows stuff. Like "Savestate slot changed to 3" or whatever. The ones that didn't work failed silently.
[Image: XTe1j6J.png]
Gaming Rig: Intel i7 6700k @ 4.8Ghz | GTX 1070 TI | 32GB RAM | 960GB(480GB+480GB RAID0) SSD | 2x 1TB HDD
Reply
#23
(11-18-2013, 07:04 PM)Blyss Sarania Wrote: When I put the file in his inis folder, and used the shortcuts that worked
Now editing.

never mind.
Reply
#24
(11-18-2013, 07:12 PM)tadatada Wrote: Now editing.

I still think it's cool that you spent that time hunting for the problem in the source! That's dedication right there.
[Image: XTe1j6J.png]
Gaming Rig: Intel i7 6700k @ 4.8Ghz | GTX 1070 TI | 32GB RAM | 960GB(480GB+480GB RAID0) SSD | 2x 1TB HDD
Reply
#25
(11-18-2013, 07:04 PM)Blyss Sarania Wrote: When I put the file in his inis folder, and used the shortcuts that worked
Blush

(11-18-2013, 07:19 PM)Blyss Sarania Wrote: I still think it's cool that you spent that time hunting for the problem in the source! That's dedication right there.
Thank you your kind words.Smile


Edit: I confirmed that it works.
Reply
#26
It seems dat I couldn't change the "F5" function, anyone knows the command that using F5?
Reply
#27
it cycles through interlace modes
CPU : AMD Ryzen 7 3800X
Mobo : Asus PRIME B450-PLUS
GPU : NVIDIA GeForce RTX 3070
RAM : 16 Go
Reply
#28
I have tried all functions using PCSX2_keys.ini based on here, but like the following it looks F5 is not assigned.

Code:
Function                          Original Key Assign
--------------------------------------------------------
States_FreezeCurrentSlot          F1
States_DefrostCurrentSlot         F3
States_DefrostCurrentSlotBackup   Shift-F3
States_CycleSlotForward           F2
States_CycleSlotBackward          Shift-F2

Frameskip_Toggle                  Shift-F4
Framelimiter_TurboToggle          TAB
Framelimiter_SlomoToggle          Shift-TAB
Framelimiter_MasterToggle         F4

FullscreenToggle                  Alt-ENTER

Sys_Suspend                       ESC
Sys_TakeSnapshot                  F8
Sys_TakeSnapshot                  Shift-F8
Sys_TakeSnapshot                  Ctrl-Shift-F8
Sys_RenderswitchToggle            F9
Sys_LoggingToggle                 F10
Sys_FreezeGS                      F11
Sys_RecordingToggle               F12

GSwindow_CycleAspectRatio         F6
GSwindow_ZoomIn                   Ctrl-KP_ADD
GSwindow_ZoomOut                  Ctrl-KP_SUBTRACT
GSwindow_ZoomToggle               Ctrl-KP_MULTIPLY
GSwindow_ZoomInY                  Alt-Ctrl-KP_ADD
GSwindow_ZoomOutY                 Alt-Ctrl-KP_SUBTRACT
GSwindow_ZoomResetY               Alt-Ctrl-KP_MULTIPLY
GSwindow_OffsetYminus             Alt-Ctrl-UP
GSwindow_OffsetYplus              Alt-Ctrl-DOWN
GSwindow_OffsetXminus             Alt-Ctrl-LEFT
GSwindow_OffsetXplus              Alt-Ctrl-RIGHT
GSwindow_OffsetReset              Alt-Ctrl-KP_DIVIDE

Sort order: Original Key Assign
Code:
Function                          Original Key Assign
--------------------------------------------------------
Framelimiter_TurboToggle          TAB
Sys_Suspend                       ESC

States_FreezeCurrentSlot          F1
States_CycleSlotForward           F2
States_DefrostCurrentSlot         F3
Framelimiter_MasterToggle         F4
GSwindow_CycleAspectRatio         F6
Sys_TakeSnapshot                  F8
Sys_RenderswitchToggle            F9
Sys_LoggingToggle                 F10
Sys_FreezeGS                      F11
Sys_RecordingToggle               F12

Framelimiter_SlomoToggle          Shift-TAB
States_CycleSlotBackward          Shift-F2
States_DefrostCurrentSlotBackup   Shift-F3
Frameskip_Toggle                  Shift-F4
Sys_TakeSnapshot                  Shift-F8

GSwindow_ZoomIn                   Ctrl-KP_ADD
GSwindow_ZoomOut                  Ctrl-KP_SUBTRACT
GSwindow_ZoomToggle               Ctrl-KP_MULTIPLY
Sys_TakeSnapshot                  Ctrl-Shift-F8

FullscreenToggle                  Alt-ENTER
GSwindow_ZoomInY                  Alt-Ctrl-KP_ADD
GSwindow_ZoomOutY                 Alt-Ctrl-KP_SUBTRACT
GSwindow_ZoomResetY               Alt-Ctrl-KP_MULTIPLY
GSwindow_OffsetYminus             Alt-Ctrl-UP
GSwindow_OffsetYplus              Alt-Ctrl-DOWN
GSwindow_OffsetXminus             Alt-Ctrl-LEFT
GSwindow_OffsetXplus              Alt-Ctrl-RIGHT
GSwindow_OffsetReset              Alt-Ctrl-KP_DIVIDE
Reply
#29
(11-23-2013, 07:38 PM)tadatada Wrote: I have tried all functions using PCSX2_keys.ini based on here ...

Thanks. I thought of including such file with the defaults but never actually got to it. I might now Smile

Should make it easier for people to modify it themselves.

As for F5, it's not assigned indeed at PCSX2 itself. GSdx has some hardcoded (not configurable) hotkeys, and F5 is one of them - it changes deinterlace modes.
Reply
#30
Okay, tks everyone again, it seems I still have to play the guitar games with keys 1->5 or using controllers,




P/s: I hate F5 now :v
Reply




Users browsing this thread: 1 Guest(s)