More work on SDL events. Also fixed an issue (very old?) where Grafx2 didn't accurately follow mouse movements when it's very busy, ie when using Continuous Freehand with a large brush or transparency. Now, as long as the setting Merge mouse is zero, all intermediate mouse positions are correctly buffered and played back. From my testing, up to 7 seconds will be memorized.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1568 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
12
src/engine.h
12
src/engine.h
@@ -112,5 +112,17 @@ void Pixel_background(int x_pos, int y_pos, byte color);
|
||||
/// Used when hovering the menu palette.
|
||||
void Status_print_palette_color(byte color);
|
||||
|
||||
/// Puts the user in wait mode for the specified time ( in 1/100s),
|
||||
/// though the mouse still works.
|
||||
void Delay_with_active_mouse(int delay);
|
||||
|
||||
///
|
||||
/// Activate the timer that runs Push_timer_event()
|
||||
/// This function can safely be called while it's active.
|
||||
void Activate_timer(int speed);
|
||||
|
||||
///
|
||||
/// Remove the running timer that runs Push_timer_event()
|
||||
/// This function can safely be called while it's disabled.
|
||||
void Disable_timer(void);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user