Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch core keyboard problem - N key does not work #62

Closed
OKarter opened this issue Dec 10, 2018 · 6 comments · Fixed by #73
Closed

Switch core keyboard problem - N key does not work #62

OKarter opened this issue Dec 10, 2018 · 6 comments · Fixed by #73

Comments

@OKarter
Copy link

OKarter commented Dec 10, 2018

IDK if this is the correct place to submit this but while using Vice core on the Switch, the N key does not work. So i have to play all games trained :). May be true for some other keys too.

Is it only me?

@rsn8887
Copy link
Collaborator

rsn8887 commented Dec 11, 2018

Can you start from default core options, try the following, and then, again, try to press N on the on-screen keyboard to see if it works?

  • in quick menu options, set retro joy0 to on and controller0 type to joystick.
    leave the mapping here alone. The mapping here is set so you can bring up the virtual keyboard with square, the options menu with start, you can press B for C64 run/stop key, etc.

  • in quick menu controls, set user 1 and user 2 to retropad. This is where you should re-map buttons, e.g. if you don't like that A is the C64 fire-button, and B is C64 run/stop, then remap "user 1 A" to B, and "user 1 B" to A. With this mapping, B will now be C64 fire, and A will now be C64 run/stop. As this example shows, if you remap buttons here, you still get all the special key functionality set in the options mapping (virtual keyboard etc.), only mapped to different buttons.

  • in games, press Y to bring up the virtual keyboard. Press select to turn on mouse pointer control with dpad. Select items with B. Exit the virtual keyboard with another press of Y.

Another thing you might try if to use the quick menu -> controls options to map one button to keyboard 'N'.

@OKarter
Copy link
Author

OKarter commented Dec 13, 2018

Thank you RSN8887 for the effort. I've deleted retroarch and reinstalled it via homebrew browser, so that i can have default options.

  1. RETROJOY0 was ON and CONTROLLER0 type was joystick by default.
  2. USER1 & 2 was already set to retropad.

I started the core pressed 'SELECT' (- on the switch) , pressed 'Y' . (brought up the keyboard), hovered over the letter n and clicked 'A'. .. It was the LOAD command with PRESS PLAY ON TAPE written below it on the screen.

It seems that letter N was assigned to the LOAD command (with the edition of a following RETURN key).
I'll be fiddling with the options now. I hope VICE will have a good GUI someday (on any platform) as it is a very good emulator

@rsn8887
Copy link
Collaborator

rsn8887 commented Dec 13, 2018

Maybe you are pressing the wrong button? Try to select the key with B, not A.

  • It sounds like your ALT key is permanently pressed or something like that is happening which triggers some Vice hotkey, but how can it be?
  • Make sure you really delete or rename retroarch.cfg and any other core configuration file you might have.
  • Please also try a more a recent Retroarch version from the buildbot here
    https://buildbot.libretro.com/nightly/nintendo/switch/libnx/
    Just download the .7z file and extract it to your sd card. Use Winrar or any other extraction tool.
    The Homebrew store versions are very old.

@rsn8887
Copy link
Collaborator

rsn8887 commented Dec 14, 2018

I can reproduce the problem but found a workaround:
Go to Quickmenu->Options, and set RetroPad R2->"RETROK_n".

Now you can enter the letter "n" using the R2 button (lower right shoulder button).

@ozgurkarter
Copy link

Sorry for the late answer as I had too much to do nowadays. I formatted my SD card just in case. Got the nightly build.Same again. But the workaround worked well and is fine by me.

@rsn8887
Copy link
Collaborator

rsn8887 commented Jul 18, 2019

Note: N key only doesn't work when both "joy2" AND "retrojoy" are enabled at the same time. It does work when "retrojoy" is disabled and/or "joy1" is enabled. Luckily those things can be switched rather quickly in the nuklear GUI menu that can be brought up with the "start" button.

rsn8887 added a commit to rsn8887/vice-libretro that referenced this issue Jul 25, 2019
rsn8887 added a commit to rsn8887/vice-libretro that referenced this issue Jul 25, 2019
closes libretro#50
closes libretro#62

- fix keys not working on virtual keyboard. This was because the
  joystick button press interfered with the virtual key press.
  Virtual keyboard keys now always work regardless of the
  joyport and retrojoy settings

- the gui menu can now be toggled off as well as on with the
  button mapped to the 'Vice menu' key (RETROK_KP_DIVIDE), which
  is the start button by default

- the gui menu and vkbd can now always be summoned, regardless
  of the value of the "vice_Controller" setting in quick menu

- the pointer in the gui menu and vkbd can now always be
  controlled via dpad (in addition to mouse control)

- the keys with additional meanings in quickmenu->options are now
  labeled for clarity. For example, `RETROK_KP_DIVIDE (Vice Menu)`
  instead of just `RETROK_KP_DIVIDE`, or
  `RETROK_F9 (Virtual Keyboard)` instead of just `RETROK_F9`
rsn8887 added a commit to rsn8887/vice-libretro that referenced this issue Jul 30, 2019
closes libretro#50
closes libretro#62

- fix keys not working on virtual keyboard. This was because the
  joystick button press interfered with the virtual key press.
  Virtual keyboard keys now always work regardless of the
  joyport and retrojoy settings

- the gui menu can now be toggled off as well as on with the
  button mapped to the 'Vice menu' key (RETROK_KP_DIVIDE), which
  is the start button by default

- the gui menu and vkbd can now always be summoned, regardless
  of the value of the "vice_Controller" setting in quick menu

- the pointer in the gui menu and vkbd can now always be
  controlled via dpad (in addition to mouse control)

- the keys with additional meanings in quickmenu->options are now
  labeled for clarity. For example, `RETROK_KP_DIVIDE (Vice Menu)`
  instead of just `RETROK_KP_DIVIDE`, or
  `RETROK_F9 (Virtual Keyboard)` instead of just `RETROK_F9`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants