bongocat-osu icon indicating copy to clipboard operation
bongocat-osu copied to clipboard

How to add keys from the numpad?

Open Daithi opened this issue 4 years ago • 9 comments

I'm left handed and want to be able to add the numpad 0 key and the numpad decimal key.

The key codes from https://keycode.info/ don't work when I put them in the config file for key1 and key2.

Is the numpad simply not supported?

Daithi avatar Aug 13 '20 05:08 Daithi

There is a bug in input table currently. Will fix asap. Sorry for the inconvenience.

** Edit ** It fix now in e5e6395b9541be47

CSaratakij avatar Aug 13 '20 19:08 CSaratakij

Ok I rolled out a new release to fix this, sorry for the inconvenience

kuroni avatar Aug 13 '20 19:08 kuroni

The numpad decimal key still doesn't work

Daithi avatar Aug 14 '20 04:08 Daithi

Ok this looks like a big issue, apparently SFML doesn't have decimal point implemented. I will see what I can do.

kuroni avatar Aug 14 '20 04:08 kuroni

Could it possibly be named as something else? Such as numpad delete?

Daithi avatar Aug 14 '20 08:08 Daithi

I'm confident that it is not supported, as seen from here.

What I can do is to support it myself by making changes to the library, compile it offline, then use the compiled library to compile bongocat.

kuroni avatar Aug 14 '20 11:08 kuroni

@kuroni Hmm...If you go that way, this still be an issue for native linux since we prefer dynamic link sfml. Unless your change got merge to sfml upstream, I think we should warn native linux user about this issue in 'README.md' or in the Wiki section.

CSaratakij avatar Aug 14 '20 14:08 CSaratakij

@kuroni Actually, the quick fix would be to revert back to win32 api for the input in Windows. sfml for native linux and add the 'Known issue' about this problem to wiki page.

CSaratakij avatar Aug 14 '20 14:08 CSaratakij

@CSaratakij Maybe, maybe not. I really want to simplify the source by using SFML's existing API, so that might not be ideal.

kuroni avatar Aug 17 '20 00:08 kuroni