From d987063dfe85b4cd7297a5ca127a761a04578667 Mon Sep 17 00:00:00 2001 From: Sanel Zukan Date: Wed, 28 Sep 2011 12:50:24 +0000 Subject: [PATCH] Removed --- exset/exset.h | 74 --------------------------------------------------- 1 file changed, 74 deletions(-) delete mode 100644 exset/exset.h diff --git a/exset/exset.h b/exset/exset.h deleted file mode 100644 index 4c5bbe9..0000000 --- a/exset/exset.h +++ /dev/null @@ -1,74 +0,0 @@ -#ifndef exset_h -#define exset_h - -#include -#include - -#include -#include - -#include -#include - -class Exset { - -public: - Exset(void) {} - ~Exset() {} - - char str[80]; - - void set_pattern(int delay, int pattern = -1){ - if( pattern != -1 ){ - sprintf(str,"xset s %d %d",delay*60,pattern*60); - fl_start_child_process(str); - }else{ - sprintf(str,"xset s %d",delay*60); - fl_start_child_process(str); - } - } - void set_check_blank(int blank){ - sprintf(str,"xset s %s",blank ? "on" : "off"); - fl_start_child_process(str); - } - void set_blank(int blank){ - sprintf(str,"xset s %s",blank ? "blank" : "noblank"); - fl_start_child_process(str); - } - - void test_blank() { fl_start_child_process("xset s activate"); } - void test_bell() { fl_start_child_process("xkbbell"); } - - void set_mouse(int accel, int thresh){ - XChangePointerControl(fl_display, true, true, accel, - 1, thresh); - } - - - void set_bell(int volume, int pitch, int duration, int sound = 0){ - XKeyboardControl _ctrl; - unsigned long mask = KBBellPercent | KBBellPitch | KBBellDuration; - - _ctrl.bell_percent = volume; - _ctrl.bell_pitch = pitch; - _ctrl.bell_duration = duration; - - set_xset(&_ctrl,mask); - } - - void set_keybd( int repeat, int clicks) { - XKeyboardControl _ctrl; - unsigned long mask = KBKeyClickPercent | KBAutoRepeatMode; - - _ctrl.key_click_percent = clicks; - _ctrl.auto_repeat_mode = (repeat ? AutoRepeatModeOn : AutoRepeatModeOff); - - set_xset(&_ctrl,mask); - } - - void set_xset(XKeyboardControl * ctrl, unsigned long mask){ - XChangeKeyboardControl(fl_display, mask, ctrl); - } -}; -#endif -