uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

mouse.h (602B)


      1 /*
      2 Copyright (c) 2021 Devine Lu Linvega, Andrew Alderwick
      3 
      4 Permission to use, copy, modify, and distribute this software for any
      5 purpose with or without fee is hereby granted, provided that the above
      6 copyright notice and this permission notice appear in all copies.
      7 
      8 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
      9 WITH REGARD TO THIS SOFTWARE.
     10 */
     11 
     12 #define MOUSE_VERSION 1
     13 
     14 void mouse_down(Uxn *u, Uint8 *d, Uint8 mask);
     15 void mouse_up(Uxn *u, Uint8 *d, Uint8 mask);
     16 void mouse_pos(Uxn *u, Uint8 *d, Uint16 x, Uint16 y);
     17 void mouse_scroll(Uxn *u, Uint8 *d, Uint16 x, Uint16 y);