uinput.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /**** uinput.h *****************************/
  2. /* M. Moller 2013-01-16 */
  3. /* Universal RPi GPIO keyboard daemon */
  4. /*******************************************/
  5. /*
  6. Copyright (C) 2013 Michael Moller.
  7. This file is part of the Universal Raspberry Pi GPIO keyboard daemon.
  8. This is free software; you can redistribute it and/or
  9. modify it under the terms of the GNU Lesser General Public
  10. License as published by the Free Software Foundation; either
  11. version 2.1 of the License, or (at your option) any later version.
  12. The software is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. Lesser General Public License for more details.
  16. You should have received a copy of the GNU Lesser General Public
  17. License along with the GNU C Library; if not, write to the Free
  18. Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  19. 02111-1307 USA.
  20. */
  21. #ifndef _UINPUT_H_
  22. #define _UINPUT_H_
  23. int init_uinput(void);
  24. int test_uinput(void);
  25. int close_uinput(void);
  26. int send_gpio_keys(int gpio, int value);
  27. int sendKey(int key, int value);
  28. int sendKeyAndStopKey(int key);
  29. //void get_last_key(keyinfo_s *kp);
  30. #endif //_UINPUT_H_