popojan / goban

3D igo/baduk/weiqi/go game board and GUI for GnuGo and other GTP engines ray traced by GLSL shader
https://hraj.si/goban
GNU General Public License v3.0
47 stars 3 forks source link

How to map a kibtiz shortcut with space bar ? #41

Open lj739 opened 2 years ago

lj739 commented 2 years ago

Usually, 32 is for the space bar, but in this case, it didn't work, so I had to use the shortcut key "c" ( "reset camera") as a substitution, in the config file something like this {"key": 14, "command": "play once"}

lj739 commented 2 years ago

I'm glad to see that you had made such great progress on this program. The next step may be "load game"?

popojan commented 2 years ago

Thank you for your kind words.

RocketLib keycodes map space key to 1.

Adding this line to controls array in data/config.json should work:

{"key": 1, "command": "play once"},

The suggested "load game" feature would be a nice addition, I can imagine different options:

The first two could possibly share a same interface. I will give it a thought.

lj739 commented 2 years ago

Thanks for the reply. Is it possible to map right mouse key for "undo"?

------------------ 原始邮件 ------------------ 发件人: "popojan/goban" @.>; 发送时间: 2022年3月25日(星期五) 下午5:16 @.>; @.**@.>; 主题: Re: [popojan/goban] How to map a kibtiz shortcut with space bar ? (Issue #41)

Thank you for your kind words.

RocketLib keycodes map space key to 1.

Adding this line to controls array in data/config.json should work: {"key": 1, "command": "play once"},
The suggested "load game" feature would be a nice addition, I can imagine different options:

load SGF just to continue an interrupted game

load SGF record to replay game, enabling navigation move by move

load SGF positions for problem-solving, i.e. tsumego

The first two could possibly share a same interface. I will give it a thought.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

popojan commented 2 years ago

Sorry to say, impossible at the moment, config "controls" section is meant for keyboard keys only. Right mouse key is hard-coded for camera rotation.