Advertisement
t0mm13b

hecatae patch

Jul 16th, 2012
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. diff --git a/include/linux/input.h b/include/linux/input.h
  2. index 9879bdd..42cbe4b 100644
  3. --- a/include/linux/input.h
  4. +++ b/include/linux/input.h
  5. @@ -1476,9 +1476,9 @@ void input_inject_event(struct input_handle *handle, unsigned int type, unsigned
  6. extern int LGF_TestModeGetDisableInputDevices(void);
  7. static inline void input_report_key(struct input_dev *dev, unsigned int code, int value)
  8. {
  9. - if(LGF_TestModeGetDisableInputDevices())
  10. + /*if(LGF_TestModeGetDisableInputDevices())
  11. ;
  12. - else
  13. + else*/
  14. input_event(dev, EV_KEY, code, value);
  15. }
  16.  
  17. @@ -1489,9 +1489,9 @@ static inline void input_report_rel(struct input_dev *dev, unsigned int code, in
  18.  
  19. static inline void input_report_abs(struct input_dev *dev, unsigned int code, int value)
  20. {
  21. - if(LGF_TestModeGetDisableInputDevices())
  22. + /*if(LGF_TestModeGetDisableInputDevices())
  23. ;
  24. - else
  25. + else*/
  26. input_event(dev, EV_ABS, code, value);
  27. }
  28.  
  29. @@ -1507,17 +1507,17 @@ static inline void input_report_switch(struct input_dev *dev, unsigned int code,
  30.  
  31. static inline void input_sync(struct input_dev *dev)
  32. {
  33. - if(LGF_TestModeGetDisableInputDevices())
  34. + /*if(LGF_TestModeGetDisableInputDevices())
  35. ;
  36. - else
  37. + else*/
  38. input_event(dev, EV_SYN, SYN_REPORT, 0);
  39. }
  40.  
  41. static inline void input_mt_sync(struct input_dev *dev)
  42. {
  43. - if(LGF_TestModeGetDisableInputDevices())
  44. + /*if(LGF_TestModeGetDisableInputDevices())
  45. ;
  46. - else
  47. + else*/
  48. input_event(dev, EV_SYN, SYN_MT_REPORT, 0);
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement