Mercurial > hg > forks > multipaint-js
diff events.pde @ 199:475a6ab70cd1
Move function.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 27 Aug 2018 14:22:51 +0300 |
parents | 1cb7ecd73554 |
children | 06d3840b15ae |
line wrap: on
line diff
--- a/events.pde Thu Aug 23 21:24:22 2018 +0300 +++ b/events.pde Mon Aug 27 14:22:51 2018 +0300 @@ -298,18 +298,6 @@ } -void macro_command(int ckey) -{ - //filter out load/save - if (ckey == 's' || ckey == 'S' || ckey == 'l' || - ckey == 'E' || ckey == 'w' || ckey == 'W' || - ckey == 'A') - return; - - command(ckey); -} - - void maghelper(int rel) { if (rel < 0) @@ -337,6 +325,18 @@ } +void macro_command(int ckey) +{ + //filter out load/save + if (ckey == 's' || ckey == 'S' || ckey == 'l' || + ckey == 'E' || ckey == 'w' || ckey == 'W' || + ckey == 'A') + return; + + command(ckey); +} + + void command(int ckey) { g_dirty = true;