{"id":4017,"date":"2022-12-20T17:28:42","date_gmt":"2022-12-20T20:28:42","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/filter-mouse-man7\/"},"modified":"2022-12-20T17:28:42","modified_gmt":"2022-12-20T20:28:42","slug":"filter-mouse-man7","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/filter-mouse-man7\/","title":{"rendered":"filter-mouse (man7)"},"content":{"rendered":"<h1 align=\"center\">filter-mouse<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#CONFIGURATION\">CONFIGURATION<\/a><br \/> <a href=\"#EXAMPLE\">EXAMPLE<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>filter-mouse<\/b> : Generic mouse event translator<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">filter-mouse: [<file>]<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This filter translates mouse events according to a set of translation rules.<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"6%\">\n<p style=\"margin-top: 1em\"><i>file<\/i><\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"78%\">\n<p style=\"margin-top: 1em\">The name of the configuration file. If none given, the filter will first look for the file <b>filter\/mouse<\/b> in the user GGI directory (<b>$HOME\/.ggi\/<\/b> on UNIX), then in the base GGI directory if not found.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<h2>CONFIGURATION <a name=\"CONFIGURATION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The translation rules are specified through a simple text file. The following example gives a good idea of the mouse filter usage. A # marks the rest of the line as a comment.<\/p>\n<h2>EXAMPLE <a name=\"EXAMPLE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">A set of mouse translation rules:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># Syntax is: <br \/> # incoming-type [type-specifics] TO outgoing type [type-specifics]<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># <br \/> # Simulated mouse buttons on the keyboard <br \/> # <br \/> #KEY modmask modvalue button label symbol TO BUT buttonnumber <br \/> KEY 0x0004 0x0004 0xffff 0x000d 0xffff TO BUT 1 # Alt-Enter <br \/> KEY 0x0004 0x0004 0xffff 0x0020 0xffff TO BUT 2 # Alt-Space <br \/> KEY 0x0004 0x0004 0xffff 0x0008 0xffff TO BUT 3 # Alt-BackSpace<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># <br \/> # Keyboard-Mouse on the Cursors <br \/> # <br \/> #KEY modmask modval button label symbol TO REL axis value <br \/> KEY 0x0004 0x0004 0xffff 0xe034 0xffff TO REL X -5 # Alt-Left <br \/> KEY 0x0004 0x0004 0xffff 0xe035 0xffff TO REL X 5 # Alt-Right <br \/> KEY 0x0004 0x0004 0xffff 0xe032 0xffff TO REL Y -5 # Alt-Up <br \/> KEY 0x0004 0x0004 0xffff 0xe033 0xffff TO REL Y 5 # Alt-Down<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># <br \/> # Keyboard mouse on the Numpad <br \/> # <br \/> KEY 0x0004 0x0004 0xffff 0xe231 0xffff TO REL X -5 # Alt-Num1 <br \/> KEY 0x0004 0x0004 0xffff 0xe231 0xffff TO REL Y 5 # Alt-Num1 <br \/> KEY 0x0004 0x0004 0xffff 0xe232 0xffff TO REL Y 5 # Alt-Num2 <br \/> KEY 0x0004 0x0004 0xffff 0xe233 0xffff TO REL X 5 # Alt-Num3 <br \/> KEY 0x0004 0x0004 0xffff 0xe233 0xffff TO REL Y 5 # Alt-Num3 <br \/> KEY 0x0004 0x0004 0xffff 0xe234 0xffff TO REL X -5 # Alt-Num4 <br \/> KEY 0x0004 0x0004 0xffff 0xe235 0xffff TO BUT 1 # Alt-Num5 &#8211; Button <br \/> KEY 0x0004 0x0004 0xffff 0xe236 0xffff TO REL X 5 # Alt-Num6 <br \/> KEY 0x0004 0x0004 0xffff 0xe237 0xffff TO REL X -5 # Alt-Num7 <br \/> KEY 0x0004 0x0004 0xffff 0xe237 0xffff TO REL Y -5 # Alt-Num7 <br \/> KEY 0x0004 0x0004 0xffff 0xe238 0xffff TO REL Y -5 # Alt-Num8 <br \/> KEY 0x0004 0x0004 0xffff 0xe239 0xffff TO REL X 5 # Alt-Num9 <br \/> KEY 0x0004 0x0004 0xffff 0xe239 0xffff TO REL Y -5 # Alt-Num9<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># <br \/> # Home the cursor &#8230; <br \/> # <br \/> KEY 0x0004 0x0004 0xffff 0xE038 0xffff TO ABS X 0 # Alt-Home <br \/> KEY 0x0004 0x0004 0xffff 0xE038 0xffff TO ABS Y 0 # Alt-Home<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># <br \/> # Invert mouse axis <br \/> # <br \/> #REL modmsk modval axis TO REL axis multiplier <br \/> REL 0x0004 0x0004 X TO REL Y -1 <br \/> REL 0x0004 0x0004 Y TO REL X -1<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># <br \/> # Accelerate mouse <br \/> # <br \/> # multiplier treshold higher-speed <br \/> REL 0x0004 0x0004 X TO REL X 1 5 4 <br \/> REL 0x0004 0x0004 Y TO REL Y 1 5 4<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># <br \/> # <br \/> # Invert mouse buttons <br \/> BUT 0x0004 0x0004 1 TO BUT 2 <br \/> BUT 0x0004 0x0004 2 TO BUT 1<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  filter-mouse : Generic mouse event translator <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[971],"tags":[973,1104,972],"class_list":["post-4017","post","type-post","status-publish","format-standard","hentry","category-7-miscelanea","tag-973","tag-filter-mouse","tag-man7"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4017","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=4017"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4017\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4017"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4017"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4017"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}