Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Clip+ button to pause/play while in file-view? (SOLVED)
« previous next »
  • Print
Pages: [1]

Author Topic: Clip+ button to pause/play while in file-view? (SOLVED)  (Read 1499 times)

Offline yopyop

  • Member
  • *
  • Posts: 7
Clip+ button to pause/play while in file-view? (SOLVED)
« on: August 12, 2015, 02:48:10 PM »
Is it possible for a button to play/pause from file-view by changing a setting in "keymap-clip.c" ?

Update: I think the solution is to add something similar to HAVE_VOLUME_IN_LIST to list.c and a few other files. Let's hope so because that looks easy and I have very little coding experience.

Update 1.1 I've got VOLUP/DOWN functioning as play/pause within the file browser at the moment! I'm using this:

int status = audio_status();
            if (status & AUDIO_STATUS_PLAY)
            {
                if (status & AUDIO_STATUS_PAUSE)
                    unpause_action(true, true);
                else
                    pause_action(true, true);
            }

From misc.c. But I replace (true,true) with (true,false) so wps does not update and ruin the screen. I will continue to update this until I am finished or give up. Current issue is that I do not know how to replicate HAVE_VOL_IN_LIST. My replication seems to do nothing. Maybe I'll just use it and add more binds to it. Ugly hack but what the hell, I am making this for my personal use, so...

Ok it's working now ...
« Last Edit: August 14, 2015, 09:28:48 AM by yopyop »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Clip+ button to pause/play while in file-view? (SOLVED)
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.044 seconds with 15 queries.