![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on file browsers coded in lua ?????? within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Hi ive decided to work on a browser for my psp in lua and eventually release it when it nears ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() Developer and Tutor.
My Mood:
Join Date: Jul 2007
Real First Name: Craig
Location: Widnes, England
Just Played: Life.
Posts: 1,646
Trader Feedback: 0
|
Hi ive decided to work on a browser for my psp in lua and eventually release it when it nears completion but there is one main thing that i cant quite seem to find out. ???? quite simply i would like to assign the triangle button to go up a directory on the memory stick when it is pressed.
how would i do that ????? e.g. if pad:triangle() then go up one dir end Last edited by FaT3oYCG; 07-09-2007 at 01:04 AM.. |
|
|
|
|
|
#2 |
![]() |
look on evilmana there is sample by TP
__________________
[CENTER][SIZE="1"][1 Year QJ Member] [COLOR="Sienna"][LUA Coder and C Learner][/COLOR] [URL="http://dl.qj.net/Ball-Revamped-Clone-v.1-PSP-Homebrew-Games/pg/12/fid/15231/catid/195"] [COLOR="SlateGray"][Ball Revamped Clone v0.1][/COLOR] [/URL] [URL="http://dl.qj.net/Phil-s-Shooting-Range-v0.3-PSP-Homebrew-Games/pg/12/fid/11542/catid/194"] [COLOR="SlateGray"][Phil's Shooting Range v0.3][/COLOR] [/URL] [URL="http://dl.qj.net/Organization-Apps/pg/12/fid/14248/catid/190"][COLOR="SlateGray"][HideFile PRX v2][/COLOR][/URL] [URL="http://dl.qj.net/SSR-PRX-v1.1-PSP-Homebrew-Applications/pg/12/fid/14725/catid/151"][COLOR="SlateGray"][SSR PRX v1.1][/COLOR][/URL] [/SIZE][/CENTER] |
|
|
|
|
|
#3 |
![]() Developer and Tutor.
My Mood:
Join Date: Jul 2007
Real First Name: Craig
Location: Widnes, England
Just Played: Life.
Posts: 1,646
Trader Feedback: 0
|
ok thanks
EDIT: ive been there and the code doesnt tell me what i need to know ive already programmed that bit like tp's but i want to specifically know how to go back a directory (DIR) when triangle is pressed!!!!!!!! anyone know????? thanks Last edited by FaT3oYCG; 07-09-2007 at 12:57 AM.. |
|
|
|
|
|
#4 | |
![]() ![]() is not posting very often
|
cd(..)
or system.currentDirectory = .. or somethign
__________________
Quote:
|
|
|
|
|
|
|
#5 |
![]() |
check out the wiki, list all functions:
http://wiki.ps2dev.org/psp:lua_playe...ayer_functions
__________________
[I][U]QJ took away my sig. :([/U][/I] |
|
|
|
|
|
#6 |
![]() Developer and Tutor.
My Mood:
Join Date: Jul 2007
Real First Name: Craig
Location: Widnes, England
Just Played: Life.
Posts: 1,646
Trader Feedback: 0
|
thanks mike i looked over my code after looking at the site and found the problem it all works now
thanks ----- F@T3oYCG ----- |
|
|
|
|
|
#7 |
![]() |
Don't use the filebrowser on evilmana; it's old and very inefficient.
Oh and to go up a directory by pressing triangle try doing something like this: Code:
if pad:triangle() and not oldpad:triangle() then
System.currentDirectory("..")
filelist = System.listDirectory()
select = 1
end
|
|
|
|
|
|
#8 |
![]() Developer and Tutor.
My Mood:
Join Date: Jul 2007
Real First Name: Craig
Location: Widnes, England
Just Played: Life.
Posts: 1,646
Trader Feedback: 0
|
Thanks tp but ive already sorted it
i used this code: Code:
if
pad:triangle() and oldpad:triangle() ~= pad:triangle()
then
System.currentDirectory("..")
current = 1
listitems = System.listDirectory()
getnames = table.getn(listitems)
end
|
|
|
|
![]() |
| Tags |
| browsers , coded , file , lua |
| Thread Tools | |
|
|