Space key shortcut (Linux)

Found a bug? Post it here.
Post Reply
User avatar
xaccrocheur
Posts: 77
Joined: Sat Feb 27, 2010 3:16 pm
Location: Africa
Contact:

Space key shortcut (Linux)

Post by xaccrocheur »

Using my setup (Sunvox 1.7.5 GNU/Linux Ubuntu 14.04 jackdbus) it seems impossible to use the space key for anything else than edit mode ON/OFF

Steps to reproduce

- Launch the Sunvox (in console mode so as to see the messages)
- Open preferences/interface/shortcuts
- In the "actions" column, click on edit mode ON/OFF
- Click on the first shortcut button (the one that says space)
- Press mode (Alt Gr) + space
- Restart the Sunvox

No error MSG in console, now NO action is using the shortcut space

- Launch the Sunvox (in console mode so as to see the messages)
- Open preferences/interface/shortcuts
- In the "actions" column, click on play/stop
- Click on the second shortcut button (right under the one that says F9)
- Press space
- Restart the Sunvox

The console now says

Code: Select all

(...)
keymap: binding 32 0 is already defined for action 52 (new 1)
And this, no matter the key combinations tested ; always 32 0 and 52

The sunvox_config now file reads :

Code: Select all

builtin_theme 0
audiodriver jack
midi_kbd JACK
midi_kbd_ch 1
midi_no_vel 1
buffer 512
width 1900
height 1200
main_play "0 20 0 1 88 0 "
main_edit "0 20 8 "
Questions

- Why is Sunvox complaining about binding 32 0 when it seems like it's not actually used?
- How can I get an echo of the actual key codes that sunvox is receiving?
- What is action 52?
- What does (new 1) mean?
- Is there a way to use space to play/stop (just like F9 does) or is this one really hard-coded?

Thanks
Yassin Philip - Check out My music =@
User avatar
NightRadio
Site Admin
Posts: 3955
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: Space key shortcut (Linux)

Post by NightRadio »

Please don't worry about all these numbers and error messages - they are not always correct, and i will make it more user-friendly in the next update.
How can I get an echo of the actual key codes that sunvox is receiving?
Only one way now: check the binding text in sunvox_config. In your example: main_edit "0 20 8 ". This means: KEY CODE = 20; MODIFIER FLAGS = 8 (for AlrGr).
Is there a way to use space to play/stop (just like F9 does) or is this one really hard-coded?
I can do it on my Linux desktop without any problems.
The main question: after all these bindings, how the AltGr+Space and Space shortcuts work in your SunVox?
Post Reply