Kodi Community Forum

Full Version: Keymap small step forward?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do i keymap small step forward?

In keyboard small step back is mapped to quote ('), i am trying to make open exclamation symbol (ยก) (its next to it in spanish keyboards) to make a small step forward?

i used debug tool to find out the keycode, but it wont work... keycode i found is 61... dont know if its fine... or not...

Thanks for the help
In your debug log, when you press the open exclamation, you should find two lines that look like:

DEBUG: SDLKeyboard: scancode: 2, sym: 49, unicode: 49, modifier: 0
DEBUG: CApplication::OnKey: 61537 pressed, action is Number1

(These lines are me pressing some random key, so the numbers in your log will be different.) Can you post the two lines here.

JR
did you look at keyboard.xml
This are the lines...

DEBUG: SDLKeyboard: scancode: 13, sym: 61, unicode: 161, modifier: 0
DEBUG: CApplication::OnKey: 61952 pressed, action is

I figured out that the key id is 61952, after OnKey: , not sym: like its mentioned on the wiki... so... that should be corrected...

Now... i realize.. that there is no SmallStepForward action... theres a function thoug. that i think would do the work... but how do i map that function to a key...

function listed here (SmallSkipForward is the one i mention):
http://wiki.xbmc.org/index.php?title=Lis..._Functions

Thanks for the help so far...

EDIT: That function is the normal stepforward... no 7 seconds function?
30 seconds is StepForward for keyboard.xml
10 min is BigStepForward


same for backward


No 7 seconds forward
ok... thanks for the answer... should let the users use this kind of step... dont think its too difficult to implement... and leave the action there to use it in case someone wants to...
SaGGiO Wrote:I figured out that the key id is 61952, after OnKey: , not sym: like its mentioned on the wiki... so... that should be corrected...

If you post a link to the offending wiki article I'll have a look at it.

JR
why would you need it? the whole point of the small step back is 'eff, i didn't quite catch that, let's quickly jump back'. there's no forward analog to that..
spiff Wrote:why would you need it? the whole point of the small step back is 'eff, i didn't quite catch that, let's quickly jump back'. there's no forward analog to that..

If you see it that way... i supose you are right... thanks... all of you for the answer...

jhsrennie Wrote:If you post a link to the offending wiki article I'll have a look at it.

JR

If you say offending... it sounds bad jeje... This is the wiki...

http://wiki.xbmc.org/index.php?title=Lis...C_keynames
SaGGiO Wrote:If you say offending... it sounds bad jeje... This is the wiki...

http://wiki.xbmc.org/index.php?title=Lis...C_keynames

Oops, I think I wrote that article :-)

JR
Hello,
I'd like to revisit this request. I believe having a "small step forward" action would be very handy. I often find myself wanting to search by varying lengths of time, and I find it disappointing that I have one less option to quickly find the spot I'm looking for.

Today (in Frodo), most of my videos have chapters, so I'm limited to:
BigStep (defaults to chapter, therefore same as Skip)
Step (+/- 30s)
SmallStep (+/- 7s) Backwards only!!!

With Gotham, I'm definitely excited about having separated Chapter/BigStep actions. but I'd really like to have at 3 levels of skip available (Big/Regular/Small) PLUS chapter skip. Unfortunately, with SmallStepForward missing, I'm stuck with an awkward dead key on my remote.
Please add SmallStepForward! It could even be mapped to the / slash key, which is currently unmapped according to http://wiki.xbmc.org/?title=Keyboard_controls

My dream:
Image

------

On a somewhat related note, in the Keyboard Controls wiki page (http://wiki.xbmc.org/?title=Keyboard_controls), it appears that BigStepForward/Back is currently linked to both up/down and the square brackets. I do NOT see a "Future Gotham Feature" reassigning one of those key combos to ChapterOrBigStepForward/Back. Is this simply missing from the wiki, or is this on purpose? Personally, I would like to see up/down be assigned to ChapterOrBigStep, and square brackets remain with BigStep.

Thanks!
(2014-01-19, 15:04)GuySmily Wrote: [ -> ]On a somewhat related note, in the Keyboard Controls wiki page (http://wiki.xbmc.org/?title=Keyboard_controls), it appears that BigStepForward/Back is currently linked to both up/down and the square brackets. I do NOT see a "Future Gotham Feature" reassigning one of those key combos to ChapterOrBigStepForward/Back. Is this simply missing from the wiki, or is this on purpose? Personally, I would like to see up/down be assigned to ChapterOrBigStep, and square brackets remain with BigStep.

Wiki fixed. As of right now, the current default keymap for Gotham will do exactly what you're asking :)

As for the feature request on smallstepforward, I think there's an idea floating around (maybe?) to just allow variable steps that can be defined to whatever you want. Something like "forward(10seconds)", and it could be just about any value. I think.
(2014-01-20, 07:25)Ned Scott Wrote: [ -> ]Wiki fixed. As of right now, the current default keymap for Gotham will do exactly what you're asking Smile
Cool. Just to be clear, will the Up/Down keys also get updated to ChapterOrBigStepForward/Back? If so, should those lines also have "Future Gotham Feature: Next chapter OR Step forward/backward 10min" added?

(2014-01-20, 07:25)Ned Scott Wrote: [ -> ]As for the feature request on smallstepforward, I think there's an idea floating around (maybe?) to just allow variable steps that can be defined to whatever you want. Something like "forward(10seconds)", and it could be just about any value. I think.
Configurable timing sounds nice. I don't mind changing it in advancedsettings.xml manually, but it would be awesome to have it in the GUI.
(2014-01-20, 08:43)GuySmily Wrote: [ -> ]
(2014-01-20, 07:25)Ned Scott Wrote: [ -> ]Wiki fixed. As of right now, the current default keymap for Gotham will do exactly what you're asking :)
Cool. Just to be clear, will the Up/Down keys also get updated to ChapterOrBigStepForward/Back? If so, should those lines also have "Future Gotham Feature: Next chapter OR Step forward/backward 10min" added?

No, because that's what it currently does. Up/Down's behavior will not change between v12 and v13. They use a different Action ID, but the page Keyboard commands (wiki) is not a list of Action IDs (wiki), just a list of descriptions.
I created a pull request to add a proper SmallStepForwards in the meantime. Have no idea if it will fly with the bosses, though Smile

https://github.com/xbmc/xbmc/pull/4061