Prev Previous Post   Next Post Next
Old 16th January 2004, 16:15   #1
Warrior of the Light
Forum King
 
Warrior of the Light's Avatar
 
Join Date: Aug 2002
Location: The Netherlands
Posts: 4,121
difficulty with keyboard/mouse input

I'm working on a preset called AvsCAD and I want to be able to set the linewidth from 1 to 2 .. to 5 and back to 1. This is not a problem, it's just that if you hold the key for multiple frames, the counter keeps adding on. I thought I had a solution, but it doesn't seem to work.

Could anyone tell me what I'm doing wrong?
I've attached a tryout instead of the preset itself to prevent people from making remixes before final release.

Edit: general idea of what it does:
code:


qpulse=
if qold=qnew
then
0
else
if qold=0
then
1
else
0


--So:-----

keyold|keynew|goal
------|------|----
0|0 =|0
0|1 =|1
1|0 =|0
1|1 =|0


Attached Files
File Type: zip wotl - keytrick.zip (416 Bytes, 106 views)

Jesus loves you [yes, you] so much, he even died for you so that you will not need to die, but live forever
Warrior of the Light is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Visualizations > AVS

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump