#include "defs.h" void canvas_event_proc(canvas, event, arg) Canvas canvas; Event *event; caddr_t arg; { if (event_is_up(event)) return; switch (event_id(event)) { case ' ': fast_proc(); break; case 'j': case MS_LEFT: left_proc(); break; case 'l': case MS_RIGHT: right_proc(); break; case 'k': case MS_MIDDLE: anti_proc(); break; } }