Prev Previous Post   Next Post Next
Old 25th November 2003, 15:23   #1
justin
Moderator Alumni
 
Join Date: Apr 2000
Location: USA
Posts: 315
new AVS with mouse/kb support

OK added a new eval function, getkbmouse(), that lets you query the mouse position, button states, and keyboard button states. I'll let you guys figure out the implications of this (interactive presets, games, whatnot). Here's the latest DLL:

http://firehose.net/~deadbeef/smp_avs_5.zip

Word. Try a superscope like this:

code:

mousex=getkbmouse(1);
mousey=getkbmouse(2);
mousea=atan2(mousex,mousey);
x=(i-0.5)*mousex - v *0.5*cos(mousea);
y=(i-0.5)*mousey + v*0.5*sin(mousea);
red=if(getkbmouse(3),0,1);



-Justin

P.S. Edit:
"<THEMike> db|not|at|home: why say "I'll let you guys figure out the implications of this" then tell them what they are?"

Well, because you guys always blow me away, so what I think the implications are and what they will turn out to be will likely be very different =)
justin 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