remove testing code that makes clicks do strange things ;)
This was SVN commit r1242.
This commit is contained in:
parent
45ffe69f90
commit
1798a1ab1d
@ -378,21 +378,6 @@ static int handler(const SDL_Event* ev)
|
|||||||
break;
|
break;
|
||||||
case SDL_MOUSEBUTTONDOWN:
|
case SDL_MOUSEBUTTONDOWN:
|
||||||
c = ev->button.button;
|
c = ev->button.button;
|
||||||
{
|
|
||||||
Handle hs = snd_open("audio/nike.wav");
|
|
||||||
if(c==SDL_BUTTON_MIDDLE)
|
|
||||||
{
|
|
||||||
int ms = 30;
|
|
||||||
usleep(ms*1000);
|
|
||||||
}
|
|
||||||
else if(c==SDL_BUTTON_RIGHT)
|
|
||||||
{
|
|
||||||
int ms = rand()%32;
|
|
||||||
usleep(ms*1000);
|
|
||||||
}
|
|
||||||
snd_play(hs);
|
|
||||||
}
|
|
||||||
|
|
||||||
if( c < 5 )
|
if( c < 5 )
|
||||||
mouseButtons[c] = true;
|
mouseButtons[c] = true;
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user