Still work on SDL events. Airbrush seems to work. Need to do repeatable buttons.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1565 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2010-08-08 19:59:17 +00:00
parent 80b8c4e5a5
commit 951ec2d48a
9 changed files with 55 additions and 51 deletions

View File

@@ -166,7 +166,8 @@ void Button_Message_initial(void)
Display_cursor();
while(!Mouse_K && !Key) if(!Get_input()) SDL_Delay(20);
while(!Mouse_K && !Key)
Get_input();
if (Mouse_K)
Wait_end_of_click();
@@ -336,8 +337,7 @@ void Button_Select_forecolor(void)
// Wait loop after initial click
while(Mouse_K)
{
if(!Get_input())
SDL_Delay(20);
Get_input();
if (Button_under_mouse()==BUTTON_CHOOSE_COL)
{
@@ -373,8 +373,7 @@ void Button_Select_backcolor(void)
// Wait loop after initial click
do
{
if(!Get_input())
SDL_Delay(20);
Get_input();
if (Button_under_mouse()==BUTTON_CHOOSE_COL)
break; // This will repeat this button's action