QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

IR programming help

This is a discussion on IR programming help within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; I need some help with an IR signal thread, I want the thread to repeat the signal, instead of sending ...

Reply
 
LinkBack Thread Tools
Old 10-04-2006, 12:59 PM   #1
 
Tokes_69's Avatar
 
Join Date: Jan 2006
Location: Canada
Posts: 31
Trader Feedback: 0
Exclamation IR programming help

I need some help with an IR signal thread, I want the thread to repeat the signal, instead of sending one short signal. If anyone knows how this is done please dont be shy to post.
Tokes_69 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-04-2006, 01:27 PM   #2
 
 
Join Date: Jul 2005
Location: Brampton
Posts: 631
Trader Feedback: 0
Default

in a while loop.
it depends on where you want the thead to be sent.
say during a keystroke.
or every second.
__________________
[CENTER]You can hyperlink quotes and the whole box will be a link:
[URL=http://forums.qj.net/showthread.php?t=35215][COLOR=DarkRed][QUOTE=ANTONIO_424][CENTER][COLOR=DarkRed]Go for it, and remember, video tape every moment...........I gotta see this :D[/COLOR][/CENTER][/QUOTE][/COLOR][/URL][SIZE=1][B][U][URL=http://forums.qj.net/showthread.php?t=65979]A Ultimate QJ FAQ[/URL][/U][/B]-[B][U][URL=http://forums.qj.net/search.php?do=finduser&u=13500]Topics I'm in[/URL][/U][/B]-[B][U][URL=http://forums.qj.net/f-psp-development-forum-11/t-pps-game-66613.html]My qj game topic[/URL][/U][/B]-[B][U][URL=http://www.psp-programming.com/dev-forum/viewtopic.php?t=962]My psp-prog topic[/URL][/U][/B]-[B][U][URL=http://files.pspupdates.qj.net/cgi-bin/cfiles.cgi]Old QJ Download site[/URL][/U][/B]-[B][U][URL=http://forums.qj.net/showthread.php?t=46926]Only ISO topic[/URL][/U][/B][/SIZE]
"You stayed up all night trying to make your psp crash? LOLOL!!" - my brother
My PSN name is "icantthinkofone".[/CENTER]
lord pip is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-04-2006, 04:36 PM   #3

total-Z
 
youresam's Avatar
 
Join Date: Jul 2005
Location: texas
Posts: 2,803
Trader Feedback: 0
Default

yeah, a while loop is what you need.
and maybe have a bool variable that can be set in the main thread to tell the IR thread when to stop sending
__________________
牧来栠摩琠敨映汩獥
PSN: youresam
From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
youresam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-06-2006, 12:09 PM   #4
 
Tokes_69's Avatar
 
Join Date: Jan 2006
Location: Canada
Posts: 31
Trader Feedback: 0
Default

Lol of course its in a while loop -.- And the result is pressing and holding a button will send 1 signal, then stop, and to send the signal again you need to relase the button and press it again. I want to change that lord pip how would you be able to do send the signal every second? could you post a example in C please?
Tokes_69 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-06-2006, 01:10 PM   #5

Developer
 
Join Date: Mar 2006
Posts: 1,026
Trader Feedback: 0
Default

Can we see the code that you use to handle the controls?
__________________

Check out my homebrew & C tutorials at http://insomniac.0x89.org/
Coder formerly known as Insomniac197

Quote:
tshirtz: what is irshell ??
Atarian_: it's where people who work for the IRS go when they die
Insert_Witty_Name is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-06-2006, 01:21 PM   #6
 
Join Date: Jun 2006
Location: 127.0.0.1
Posts: 558
Trader Feedback: 0
Default

i say have a while loop that will run while the keypress is true then once you release the keypress = false so it won't run the loop.
__________________
There are 10 types of people in the world. Those who can read binary and those who can't.
---------------------------------------------------
Thanks Vanden, for giving me 300k for hot club
Thanks -DaveyHavok- for donating 1 Million Points
---------------------------------------------------
[IMG]http://img170.imageshack.us/img170/9756/sig1qx0.png[/IMG]
Firey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
programming

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 04:33 PM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us