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:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  User Interface and Voice
| | |-+  Pressing LEFT to get to WPS from file root

Poll

Pressing LEFT to get to WPS from file root

I'm strongly against it for my own private personal reasons!
123 (62.1%)
I dont mind, I wouldnt use it
18 (9.1%)
I'm strongly against it for my own private personal reasons!
36 (18.2%)
I wish I could bake a cake made from rainbows and give everyone a piece.
21 (10.6%)

Total Members Voted: 186

« previous next »
  • Print
Pages: 1 2 3 [4] 5 6 ... 15

Author Topic: Pressing LEFT to get to WPS from file root  (Read 94650 times)

Offline hshah

  • Member
  • *
  • Posts: 184
Re: Pressing LEFT to get to WPS from file root
« Reply #45 on: September 10, 2005, 04:28:47 PM »
Poo, this patch is no longer working for me.  Anyone know how to fix it?
Logged

Offline TiMiD

  • Developer
  • Member
  • *
  • Posts: 168
Re: Pressing LEFT to get to WPS from file root
« Reply #46 on: September 10, 2005, 08:35:43 PM »
Quote from: hshah on September 10, 2005, 04:28:47 PM
Poo, this patch is no longer working for me.  Anyone know how to fix it?
just edit apps/tree.c and change this piece of code line 750 :
Quote
                if (!tc.dirlevel)
                    break;

with

Quote

                if (!tc.dirlevel && audio_status()!=0)
                {
                    /* if we are in / directory and a song is selected in the wps screen, jump to wps */
                    start_wps = true;
                    break;
                }
(i'm too lazy to make a new patch ;D)

maybe this should be added to the cvs since it's very convenient and it's very unlikely this piece of code would generate a bug
Logged
Un programme C, c'est comme un ciel d'été : c'est plein d'étoiles !

Offline hshah

  • Member
  • *
  • Posts: 184
Re: Pressing LEFT to get to WPS from file root
« Reply #47 on: September 11, 2005, 01:36:59 AM »
I might modify that and remove the && audio_status()!=0 so that it always goes back to WPS regardless of the fact that it is playing a song!
Logged

Offline TiMiD

  • Developer
  • Member
  • *
  • Posts: 168
Re: Pressing LEFT to get to WPS from file root
« Reply #48 on: September 11, 2005, 12:42:03 PM »
Quote from: hshah on September 11, 2005, 01:36:59 AM
I might modify that and remove the && audio_status()!=0 so that it always goes back to WPS regardless of the fact that it is playing a song!

I added && audio_status()!=0 to correct a small bug with this patch : when you start your player and when resume is off, the player is in the file browser program and then if you press back it goes to wps but nothing is displayed, the screen remains the same (you see files and directories) but since you are now in wps program, you are obliged to press the select button to go back to directories (I don't know if I explain clearly clear here)


audio_status() returns 0 when no song is loaded and others values wether a song is paused or playing ...
Logged
Un programme C, c'est comme un ciel d'été : c'est plein d'étoiles !

Offline hshah

  • Member
  • *
  • Posts: 184
Re: Pressing LEFT to get to WPS from file root
« Reply #49 on: September 12, 2005, 01:22:27 AM »
Ahh rite - ok :)
Logged

Offline TiMiD

  • Developer
  • Member
  • *
  • Posts: 168
Re: Pressing LEFT to get to WPS from file root
« Reply #50 on: September 13, 2005, 09:25:27 AM »
However, I think that a cleaner approach would be to simply avoid returning to wps if no song is loaded

then around line 1150
Quote
        if (start_wps)
        {
            lcd_stop_scroll();
...

becomes
Quote
        if (start_wps && audio_status()!=0)
        {
            lcd_stop_scroll();
...
Logged
Un programme C, c'est comme un ciel d'été : c'est plein d'étoiles !

Offline hshah

  • Member
  • *
  • Posts: 184
Re: Pressing LEFT to get to WPS from file root
« Reply #51 on: October 30, 2005, 12:18:23 PM »
The tree.c file has now changed and this patch cannot be applied in the same way - any modification to the patch please?
Logged

Offline LinusN

  • Member
  • *
  • Posts: 1914
Re: Pressing LEFT to get to WPS from file root
« Reply #52 on: October 30, 2005, 12:50:27 PM »
Here's a working patch.


[attachment deleted by admin, too old]
Logged
Archos Jukebox 6000, Recorder, FM Recorder/iAudio X5/iriver H1x0, H3x0/Toshiba Gigabeat F20/iPod G5, G5.5

Offline hshah

  • Member
  • *
  • Posts: 184
Re: Pressing LEFT to get to WPS from file root
« Reply #53 on: October 30, 2005, 12:52:38 PM »
cool - thanks LinusN :D
Logged

Offline XavierGr

  • Global Moderator
  • Member
  • *
  • Posts: 207
Re: Pressing LEFT to get to WPS from file root
« Reply #54 on: October 30, 2005, 10:11:30 PM »
Well, here is my opinion about exiting and entering the wps:

Currently rockbox on iriver has 2 selection buttons. "Right" and "Single Joystick Down (click)".
This, IMHO, is a keymap waste.

I have made a patch that makes the single click button to both exit (as default) and enter the wps, no matter where the user is on the filetree.

So you hear a tune and want to check the filetree? Press click and you will exit the wps. Then if you want to get back to WPS you will press again joystick click and you are set.

I prefer this way because it is easy to remember and more easy for the hand. (this way you don't need to change hand position to reach the play button) Also I've set this for the radio too. (if you are outside the radio screen and press click you will be directed again to the radio screen.

Also another matter for me is the exit button of the Main menu. Currently when a user wants to exit the main menu, he will have to press one of the exit buttons which are 3! "Stop", "Left" and "A-B"(menu) buttons. All these buttons do the same thing exit the current menu screen and go to the upper menu level, but none of them can exit the menu immediately. So once again we could use the click to exit the menu immediately to where the user was before his entrance in the menu.

Only problem with that is that some may be confused, because many have in their minds that click == select.

Any comments, or further thoughts?

I will attach my patch here to test, it is only slight modification of the tree.c (I am not sure if it builds cleanly on latest build)



[attachment deleted by admin, too old]
« Last Edit: October 30, 2005, 10:15:53 PM by XavierGr »
Logged

Offline muesli

  • Member
  • *
  • Posts: 186
Re: Pressing LEFT to get to WPS from file root
« Reply #55 on: October 31, 2005, 06:55:10 PM »
i love that idea but cant test it due missing self compiling skills...
Logged

Offline XavierGr

  • Global Moderator
  • Member
  • *
  • Posts: 207
Re: Pressing LEFT to get to WPS from file root
« Reply #56 on: October 31, 2005, 10:13:45 PM »
muesli: Here is my current build. It is not the latest but you can test the feature I am proposing.

http://www.misticriver.net/photos/displayimage.php?album=lastup&cat=11302&pos=0

Logged

Offline muesli

  • Member
  • *
  • Posts: 186
Re: Pressing LEFT to get to WPS from file root
« Reply #57 on: November 01, 2005, 04:58:26 AM »
i am currently running firefly's remote build excluding timid's changes. is that similar?
Logged

Offline blackreplica

  • Member
  • *
  • Posts: 7
Re: Pressing LEFT to get to WPS from file root
« Reply #58 on: November 01, 2005, 05:09:43 AM »
Can someone better versed in this give a noob an idea of how to implement linus' patch to allow me to go back to the wps by left click? Thanks in advance
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Pressing LEFT to get to WPS from file root
« Reply #59 on: November 01, 2005, 05:42:20 AM »
you need to compile rockbox from sources ... See the Wiki on how to do this.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

  • Print
Pages: 1 2 3 [4] 5 6 ... 15
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  User Interface and Voice
| | |-+  Pressing LEFT to get to WPS from file root
 

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

Page created in 0.126 seconds with 21 queries.