<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.hard-light.org/index.php?action=history&amp;feed=atom&amp;title=Script_-_Scripted_Mouse</id>
	<title>Script - Scripted Mouse - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.hard-light.org/index.php?action=history&amp;feed=atom&amp;title=Script_-_Scripted_Mouse"/>
	<link rel="alternate" type="text/html" href="https://wiki.hard-light.org/index.php?title=Script_-_Scripted_Mouse&amp;action=history"/>
	<updated>2026-11-15T10:05:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.hard-light.org/index.php?title=Script_-_Scripted_Mouse&amp;diff=65587&amp;oldid=prev</id>
		<title>Wookieejedi: update to modern link</title>
		<link rel="alternate" type="text/html" href="https://wiki.hard-light.org/index.php?title=Script_-_Scripted_Mouse&amp;diff=65587&amp;oldid=prev"/>
		<updated>2024-02-26T19:00:23Z</updated>

		<summary type="html">&lt;p&gt;update to modern link&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:00, 26 February 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== &#039;&#039;&#039;This script is now outdated and the modern version is:&#039;&#039;&#039; ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[https://www.hard-light.net/forums/index.php?topic=97931.0 Modern Mouse as Joystick script]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Draws mouse flight icon and modifies the mouse controls.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Draws mouse flight icon and modifies the mouse controls.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Wookieejedi</name></author>
	</entry>
	<entry>
		<id>https://wiki.hard-light.org/index.php?title=Script_-_Scripted_Mouse&amp;diff=45425&amp;oldid=prev</id>
		<title>Niffiwan: /* Additional files */</title>
		<link rel="alternate" type="text/html" href="https://wiki.hard-light.org/index.php?title=Script_-_Scripted_Mouse&amp;diff=45425&amp;oldid=prev"/>
		<updated>2016-05-20T10:32:32Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Additional files&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:32, 20 May 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l579&quot;&gt;Line 579:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 579:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Additional files==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Additional files==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Script will accept &amp;#039;&amp;#039;&amp;#039;mouse_ret_2.dds&amp;#039;&amp;#039;&amp;#039; as the mouse indicator, but should the effect be missing, the script should revert to simple 2d draw icon (icon is automatically centered).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Script will accept &amp;#039;&amp;#039;&amp;#039;mouse_ret_2.dds&amp;#039;&amp;#039;&amp;#039; as the mouse indicator, but should the effect be missing, the script should revert to simple 2d draw icon (icon is automatically centered).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;128x128 res file here: http://www.mediafire.com/download/dyjnww0sg6vsff8/mouse_ret_2.dds&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Scripting_Examples]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Scripting_Examples]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Niffiwan</name></author>
	</entry>
	<entry>
		<id>https://wiki.hard-light.org/index.php?title=Script_-_Scripted_Mouse&amp;diff=28858&amp;oldid=prev</id>
		<title>TopAce: header, punctuation</title>
		<link rel="alternate" type="text/html" href="https://wiki.hard-light.org/index.php?title=Script_-_Scripted_Mouse&amp;diff=28858&amp;oldid=prev"/>
		<updated>2010-04-18T19:29:57Z</updated>

		<summary type="html">&lt;p&gt;header, punctuation&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:29, 18 April 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==Function==&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Draws mouse flight icon and modifies the mouse controls&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Draws mouse flight icon and modifies the mouse controls&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Table entry==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Table entry==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l579&quot;&gt;Line 579:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 578:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Additional files==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Additional files==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Script will accept &#039;&#039;&#039;mouse_ret_2.dds&#039;&#039;&#039; as the mouse indicator but should the effect be missing the script should revert to simple 2d draw icon (icon is automatically centered).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Script will accept &#039;&#039;&#039;mouse_ret_2.dds&#039;&#039;&#039; as the mouse indicator&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/ins&gt;but should the effect be missing&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/ins&gt;the script should revert to simple 2d draw icon (icon is automatically centered).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Scripting_Examples]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Scripting_Examples]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>TopAce</name></author>
	</entry>
	<entry>
		<id>https://wiki.hard-light.org/index.php?title=Script_-_Scripted_Mouse&amp;diff=28112&amp;oldid=prev</id>
		<title>Wanderer: edited the parser, moved config file to data/config dir, changed it to .cfg to improve scripts portability</title>
		<link rel="alternate" type="text/html" href="https://wiki.hard-light.org/index.php?title=Script_-_Scripted_Mouse&amp;diff=28112&amp;oldid=prev"/>
		<updated>2010-02-20T16:43:18Z</updated>

		<summary type="html">&lt;p&gt;edited the parser, moved config file to data/config dir, changed it to .cfg to improve scripts portability&lt;/p&gt;
&lt;a href=&quot;https://wiki.hard-light.org/index.php?title=Script_-_Scripted_Mouse&amp;amp;diff=28112&amp;amp;oldid=28096&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Wanderer</name></author>
	</entry>
	<entry>
		<id>https://wiki.hard-light.org/index.php?title=Script_-_Scripted_Mouse&amp;diff=28096&amp;oldid=prev</id>
		<title>Wanderer: fixing bug</title>
		<link rel="alternate" type="text/html" href="https://wiki.hard-light.org/index.php?title=Script_-_Scripted_Mouse&amp;diff=28096&amp;oldid=prev"/>
		<updated>2010-02-20T08:49:26Z</updated>

		<summary type="html">&lt;p&gt;fixing bug&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:49, 20 February 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l116&quot;&gt;Line 116:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 116:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;-----------------------------------------------------------------------&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;-----------------------------------------------------------------------&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;filename_mouse = &amp;quot;mouse_script.txt&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;filename_mouse = &amp;quot;mouse_script.txt&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;boolmousefileOK = cf.fileExists(filename_mouse, &quot;data/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;scripts&lt;/del&gt;/&quot;, true)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;boolmousefileOK = cf.fileExists(filename_mouse, &quot;data/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;text&lt;/ins&gt;/&quot;, true)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;boolscriptmouse = false&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;boolscriptmouse = false&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Wanderer</name></author>
	</entry>
	<entry>
		<id>https://wiki.hard-light.org/index.php?title=Script_-_Scripted_Mouse&amp;diff=27812&amp;oldid=prev</id>
		<title>Wanderer: made changes to improve multimod support</title>
		<link rel="alternate" type="text/html" href="https://wiki.hard-light.org/index.php?title=Script_-_Scripted_Mouse&amp;diff=27812&amp;oldid=prev"/>
		<updated>2010-01-25T11:14:13Z</updated>

		<summary type="html">&lt;p&gt;made changes to improve multimod support&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:14, 25 January 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l115&quot;&gt;Line 115:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 115:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;-- check if the file containing mouse references exists&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;-- check if the file containing mouse references exists&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;-----------------------------------------------------------------------&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;-----------------------------------------------------------------------&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;filename_mouse = &quot;mouse_script.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;cfg&lt;/del&gt;&quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;filename_mouse = &quot;mouse_script.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;txt&lt;/ins&gt;&quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;boolmousefileOK = cf.fileExists(filename_mouse, &quot;data/scripts/&quot;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;false&lt;/del&gt;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;boolmousefileOK = cf.fileExists(filename_mouse, &quot;data/scripts/&quot;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;true&lt;/ins&gt;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;boolscriptmouse = false&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;boolscriptmouse = false&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l132&quot;&gt;Line 132:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 132:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    -- open the file in read only mode&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    -- open the file in read only mode&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    mousefile = cf.openFile(filename_mouse, &quot;r&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;, &quot;data/scripts/&lt;/del&gt;&quot;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    mousefile = cf.openFile(filename_mouse, &quot;r&quot;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    -- pick first line&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    -- pick first line&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l395&quot;&gt;Line 395:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 395:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Configuration file==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Configuration file==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Filename &#039;&#039;&#039;mouse_script.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;cfg&lt;/del&gt;&#039;&#039;&#039;, placed into &#039;&#039;&#039;.../data/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;scripts&lt;/del&gt;/&#039;&#039;&#039; directory&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Filename &#039;&#039;&#039;mouse_script.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;txt&lt;/ins&gt;&#039;&#039;&#039;, placed into &#039;&#039;&#039;.../data/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;text&lt;/ins&gt;/&#039;&#039;&#039; directory&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;Sensitivity:         350&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;Sensitivity:         350&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Sensitivity Curve:   1.5&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Sensitivity Curve:   1.5&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Wanderer</name></author>
	</entry>
	<entry>
		<id>https://wiki.hard-light.org/index.php?title=Script_-_Scripted_Mouse&amp;diff=23042&amp;oldid=prev</id>
		<title>Wanderer: new script</title>
		<link rel="alternate" type="text/html" href="https://wiki.hard-light.org/index.php?title=Script_-_Scripted_Mouse&amp;diff=23042&amp;oldid=prev"/>
		<updated>2009-06-08T09:56:01Z</updated>

		<summary type="html">&lt;p&gt;new script&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Function==&lt;br /&gt;
Draws mouse flight icon and modifies the mouse controls&lt;br /&gt;
&lt;br /&gt;
==Table entry==&lt;br /&gt;
For example &amp;#039;&amp;#039;&amp;#039;script_mouse-sct.tbm&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;#Conditional Hooks&lt;br /&gt;
&lt;br /&gt;
$Application: FS2_Open&lt;br /&gt;
$On Mission Start:&lt;br /&gt;
&lt;br /&gt;
[&lt;br /&gt;
&lt;br /&gt;
-- couple of functions to make things go easier&lt;br /&gt;
function find_after_keyword(line_to_parse, keyword)&lt;br /&gt;
&lt;br /&gt;
   -- make sure both strings are in lower case&lt;br /&gt;
   line_to_parse = line_to_parse:lower()&lt;br /&gt;
   keyword = keyword:lower()&lt;br /&gt;
&lt;br /&gt;
   -- find any instances of the keyword&lt;br /&gt;
   key_s, key_e = line_to_parse:find(keyword)&lt;br /&gt;
&lt;br /&gt;
   -- if we cant find a thing&lt;br /&gt;
   if key_s == nil then&lt;br /&gt;
      return nil&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
   result = line_to_parse:match(&amp;quot;%d+&amp;quot;, e_key)&lt;br /&gt;
   return tonumber(result)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function find_4_numbers_after_keyword(line_to_parse, keyword)&lt;br /&gt;
&lt;br /&gt;
   -- make sure both strings are in lower case&lt;br /&gt;
   line_to_parse = line_to_parse:lower()&lt;br /&gt;
   keyword = keyword:lower()&lt;br /&gt;
&lt;br /&gt;
   -- find any instances of the keyword&lt;br /&gt;
   key_s, key_e = line_to_parse:find(keyword)&lt;br /&gt;
&lt;br /&gt;
   -- if we cant find a thing&lt;br /&gt;
   if key_s == nil then&lt;br /&gt;
      return nil&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
   -- make sure r is an array&lt;br /&gt;
   r = {}&lt;br /&gt;
   i = 1&lt;br /&gt;
&lt;br /&gt;
   -- stuff the array&lt;br /&gt;
   for p in line_to_parse:gmatch(&amp;quot;%d+&amp;quot;) do&lt;br /&gt;
      r[i] = p&lt;br /&gt;
      r[i] = tonumber(r[i])&lt;br /&gt;
      if r[i] &amp;gt; 255 then&lt;br /&gt;
         r[i] = 255&lt;br /&gt;
      elseif r[i] &amp;lt; 0 then&lt;br /&gt;
         r[i] = 0&lt;br /&gt;
      end&lt;br /&gt;
      i = i + 1&lt;br /&gt;
   end&lt;br /&gt;
   return r&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function parse_mousefile_line(line_to_parse, mousefile)&lt;br /&gt;
   -- check for sensitivity&lt;br /&gt;
   if mousesensitivity == nil then&lt;br /&gt;
      mousesensitivity = find_after_keyword(line_to_parse, &amp;quot;Sensitivity:&amp;quot;)&lt;br /&gt;
      if mousesensitivity ~= nil then&lt;br /&gt;
         if mousesensitivity &amp;lt; 100 then&lt;br /&gt;
            mousesensitivity = 100&lt;br /&gt;
         elseif mousesensitivity &amp;gt; 600 then&lt;br /&gt;
            mousesensitivity = 600&lt;br /&gt;
         end&lt;br /&gt;
      end&lt;br /&gt;
   -- if we already have sensitivity, check for sensitivity curve&lt;br /&gt;
   elseif mousesensitivitymode == nil then&lt;br /&gt;
      mousesensitivitymode = find_after_keyword(line_to_parse, &amp;quot;Sensitivity Curve:&amp;quot;)&lt;br /&gt;
      if mousesensitivitymode ~= nil then&lt;br /&gt;
         if mousesensitivitymode &amp;lt; 0 then&lt;br /&gt;
            mousesensitivitymode = 1&lt;br /&gt;
         elseif mousesensitivitymode &amp;gt; 6 then&lt;br /&gt;
            mousesensitivitymode = 6&lt;br /&gt;
         end&lt;br /&gt;
      end&lt;br /&gt;
   -- if we have all the above, go for control mode&lt;br /&gt;
   elseif mousecontrolmode == nil then&lt;br /&gt;
      mousecontrolmode = find_after_keyword(line_to_parse, &amp;quot;Control Mode:&amp;quot;)&lt;br /&gt;
   -- if we have all the above, go for deadzone&lt;br /&gt;
   elseif mousedeadzone == nil then&lt;br /&gt;
      mousedeadzone = find_after_keyword(line_to_parse, &amp;quot;Deadzone:&amp;quot;)&lt;br /&gt;
      if mousedeadzone ~= nil then&lt;br /&gt;
         if mousedeadzone &amp;lt; 0 then&lt;br /&gt;
            mousedeadzone = 0&lt;br /&gt;
         end&lt;br /&gt;
      end&lt;br /&gt;
   -- if we have all the above, go for mouse invert&lt;br /&gt;
   elseif mouseinvert == nil then&lt;br /&gt;
      mouseinvert = find_after_keyword(line_to_parse, &amp;quot;Mouse Invert:&amp;quot;)&lt;br /&gt;
      if mouseinvert ~= 1 then&lt;br /&gt;
         mouseinvert = 0&lt;br /&gt;
      end&lt;br /&gt;
   -- if we have all the above, go for mouse boundaries&lt;br /&gt;
   elseif mouseboundaries == nil then&lt;br /&gt;
      mouseboundaries = find_after_keyword(line_to_parse, &amp;quot;Boundary Limit:&amp;quot;)&lt;br /&gt;
   -- if we have all the above, go for mouse colors&lt;br /&gt;
   elseif mousecolor == nil then&lt;br /&gt;
      mousecolors = find_4_numbers_after_keyword(line_to_parse, &amp;quot;Indicator Color:&amp;quot;)&lt;br /&gt;
   -- all found - set the position to end of file&lt;br /&gt;
   else&lt;br /&gt;
      mousefile:seek(&amp;quot;end&amp;quot;)&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-----------------------------------------------------------------------&lt;br /&gt;
-- check if the file containing mouse references exists&lt;br /&gt;
-----------------------------------------------------------------------&lt;br /&gt;
filename_mouse = &amp;quot;mouse_script.cfg&amp;quot;&lt;br /&gt;
boolmousefileOK = cf.fileExists(filename_mouse, &amp;quot;data/scripts/&amp;quot;, false)&lt;br /&gt;
boolscriptmouse = false&lt;br /&gt;
&lt;br /&gt;
-- if file exists&lt;br /&gt;
if boolmousefileOK then&lt;br /&gt;
   -- reset all the variables to nil&lt;br /&gt;
   mousesensitivity = nil&lt;br /&gt;
   mousesensitivitymode = nil&lt;br /&gt;
   mousecontrolmode = nil&lt;br /&gt;
   mousedeadzone = nil&lt;br /&gt;
   mouseinvert = nil&lt;br /&gt;
   mouseboundaries = nil&lt;br /&gt;
   mousecolor = nil&lt;br /&gt;
   mousecolors = {}&lt;br /&gt;
&lt;br /&gt;
   -- open the file in read only mode&lt;br /&gt;
   mousefile = cf.openFile(filename_mouse, &amp;quot;r&amp;quot;, &amp;quot;data/scripts/&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
   -- pick first line&lt;br /&gt;
   new_line = mousefile:read(&amp;quot;*l&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
   while new_line ~= nil do&lt;br /&gt;
      -- parse line and then jump on to the next line until end of file&lt;br /&gt;
      parse_mousefile_line(new_line,mousefile)&lt;br /&gt;
      new_line = mousefile:read(&amp;quot;*l&amp;quot;)&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
   -- all data read.. time to close the file&lt;br /&gt;
   mousefile:close()&lt;br /&gt;
&lt;br /&gt;
   -- if these three were found from the cfg file...&lt;br /&gt;
   if mousesensitivity and mousesensitivitymode and mousecontrolmode then&lt;br /&gt;
&lt;br /&gt;
      -- set script to actually run, allow lua to override c coded controls&lt;br /&gt;
      boolscriptmouse = true&lt;br /&gt;
      ba.setControlMode(LUA_FULL_CONTROLS)&lt;br /&gt;
&lt;br /&gt;
      -- make sure we have a number in deadzone var and not nil&lt;br /&gt;
      if mousedeadzone == nil then&lt;br /&gt;
         mousedeadzone = 0&lt;br /&gt;
      end&lt;br /&gt;
&lt;br /&gt;
      -- define some variables&lt;br /&gt;
      mouse_reset_counter = nil&lt;br /&gt;
      missiontime_old = 0&lt;br /&gt;
      missiontime = nil&lt;br /&gt;
&lt;br /&gt;
      -- if mouse invert was set to true, then invert the mouse (set it to &amp;#039;-1&amp;#039;)&lt;br /&gt;
      -- otherwise define the multiplier as &amp;#039;1&amp;#039;&lt;br /&gt;
      if mouseinvert == 1 then&lt;br /&gt;
         mouseinvert = -1&lt;br /&gt;
      else&lt;br /&gt;
         mouseinvert = 1&lt;br /&gt;
      end&lt;br /&gt;
&lt;br /&gt;
      -- check if boundaries are valid&lt;br /&gt;
      if mouseboundaries == nil then&lt;br /&gt;
         mouseboundaries = 1&lt;br /&gt;
      end&lt;br /&gt;
&lt;br /&gt;
      -- check that defined control area is not larger than the actual area which can be controlled&lt;br /&gt;
      local max_limits&lt;br /&gt;
      max_limits = mousesensitivity * 2 + mousedeadzone * 2 + 10&lt;br /&gt;
      scr_width = gr.getScreenWidth()&lt;br /&gt;
      scr_height = gr.getScreenHeight()&lt;br /&gt;
      if max_limits &amp;gt; scr_width or max_limits &amp;gt; scr_height then&lt;br /&gt;
         ba.warning(&amp;quot;Mouse control area defined to be larger than the window size, please resize&amp;quot;)&lt;br /&gt;
      end&lt;br /&gt;
&lt;br /&gt;
      --setup mouse bitmap&lt;br /&gt;
      mouse_bm = gr.loadTexture(&amp;quot;mouse_ret_2.dds&amp;quot;, true)&lt;br /&gt;
      if mouse_bm:isValid() then&lt;br /&gt;
         no_bitmap = false&lt;br /&gt;
         mouse_bm_w = mouse_bm:getWidth() / 2&lt;br /&gt;
         mouse_bm_h = mouse_bm:getHeight() / 2&lt;br /&gt;
      else&lt;br /&gt;
         no_bitmap = true&lt;br /&gt;
      end&lt;br /&gt;
   else&lt;br /&gt;
      ba.warning(&amp;quot;Scripted mouse&amp;#039;s init failed&amp;quot;)&lt;br /&gt;
   end&lt;br /&gt;
else&lt;br /&gt;
   ba.warning(&amp;quot;File &amp;#039;&amp;quot; .. filename_mouse ..&amp;quot;&amp;#039; not found&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
]&lt;br /&gt;
&lt;br /&gt;
$Application: FS2_Open&lt;br /&gt;
$State: GS_STATE_GAME_PLAY&lt;br /&gt;
$On Frame:&lt;br /&gt;
&lt;br /&gt;
[&lt;br /&gt;
&lt;br /&gt;
------------------------&lt;br /&gt;
------ functions -------&lt;br /&gt;
------------------------&lt;br /&gt;
function mouse_control_A(value, centervalue, axis)&lt;br /&gt;
   -- get the actual difference from centerpoint&lt;br /&gt;
   delta = value - centervalue&lt;br /&gt;
&lt;br /&gt;
   -- default multiplier to +1&lt;br /&gt;
   multiplier = 1&lt;br /&gt;
&lt;br /&gt;
   -- if we are handling negative values set multiplier to -1&lt;br /&gt;
   -- and make sure we deal only with positive values&lt;br /&gt;
   if delta &amp;lt; 0 then&lt;br /&gt;
      multiplier = -1&lt;br /&gt;
      delta = math.abs(delta)&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
   -- deduct deadzone from the delta&lt;br /&gt;
   delta = delta - mousedeadzone&lt;br /&gt;
   if delta &amp;lt; 0 then&lt;br /&gt;
      delta = 0&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
   -- scale delta from 0 to 1 according to defined sensitivity&lt;br /&gt;
   delta = delta / mousesensitivity&lt;br /&gt;
   if delta &amp;gt; 1 then&lt;br /&gt;
      delta = 1&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
   -- if we do not have extreme values&lt;br /&gt;
   -- apply the defined sensitivity curve&lt;br /&gt;
   if (delta &amp;gt; 0) and (delta &amp;lt; 1) then&lt;br /&gt;
      delta = math.pow(delta, mousesensitivitymode)&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
   -- apply the multiplier&lt;br /&gt;
   delta = delta * multiplier&lt;br /&gt;
&lt;br /&gt;
   return delta&lt;br /&gt;
end&lt;br /&gt;
------------------------&lt;br /&gt;
function do_boundaries_check(limit)&lt;br /&gt;
   f_mouse_x = nil&lt;br /&gt;
   f_mouse_y = nil&lt;br /&gt;
&lt;br /&gt;
   -- do we go over width limits&lt;br /&gt;
   if mouse_x &amp;lt;= limit then&lt;br /&gt;
      f_mouse_x = limit&lt;br /&gt;
   elseif mouse_x &amp;gt;= (scr_width - limit) then&lt;br /&gt;
      f_mouse_x = scr_width - limit&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
   -- do we go over height limits&lt;br /&gt;
   if mouse_y &amp;lt;= limit then&lt;br /&gt;
      f_mouse_y = limit&lt;br /&gt;
   elseif mouse_y &amp;gt;= (scr_height - limit) then&lt;br /&gt;
      f_mouse_y = scr_height - limit&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
   -- reset the cursor to the nearest boundary&lt;br /&gt;
   if f_mouse_x ~= nil or f_mouse_y ~= nil then&lt;br /&gt;
      if f_mouse_x and f_mouse_y then&lt;br /&gt;
         io.forceMousePosition(f_mouse_x, f_mouse_y)&lt;br /&gt;
      elseif f_mouse_x then&lt;br /&gt;
         io.forceMousePosition(f_mouse_x, mouse_y)&lt;br /&gt;
      else&lt;br /&gt;
         io.forceMousePosition(mouse_x, f_mouse_y)&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
------------------------&lt;br /&gt;
--- end of functions ---&lt;br /&gt;
------------------------&lt;br /&gt;
&lt;br /&gt;
if boolscriptmouse == true then&lt;br /&gt;
   -- check for center button reset...&lt;br /&gt;
   if mouse_reset_counter == nil then&lt;br /&gt;
      mouse_center_x = io.getMouseX()&lt;br /&gt;
      mouse_center_y = io.getMouseY()&lt;br /&gt;
      mouse_reset_counter = 0&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
   -- get frametime (used to increment the timer)&lt;br /&gt;
   frametime = ba.getFrametime()&lt;br /&gt;
&lt;br /&gt;
   -- make sure missiontime and old missiontime exist&lt;br /&gt;
   if missiontime ~= nil then&lt;br /&gt;
      missiontime_old = missiontime&lt;br /&gt;
   end&lt;br /&gt;
   missiontime = mn.getMissionTime()&lt;br /&gt;
&lt;br /&gt;
   -- if the setting changes make sure to reset it to false&lt;br /&gt;
   if io.MouseControlStatus == true then&lt;br /&gt;
      mouse_reset_on_end = true&lt;br /&gt;
      io.MouseControlStatus = false&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
   -- check if missiontime is actually running or not&lt;br /&gt;
   if missiontime ~= missiontime_old then&lt;br /&gt;
&lt;br /&gt;
      -- after pause ends (ie. missiontime starts running again)&lt;br /&gt;
      -- reset the mouse to the center&lt;br /&gt;
      if end_of_pause == true then&lt;br /&gt;
         io.forceMousePosition(mouse_center_x, mouse_center_y)&lt;br /&gt;
         end_of_pause = nil&lt;br /&gt;
      end&lt;br /&gt;
&lt;br /&gt;
      -- increment the center mouse button down counter&lt;br /&gt;
      if io.isMouseButtonDown(MOUSE_MIDDLE_BUTTON) then&lt;br /&gt;
         mouse_reset_counter = mouse_reset_counter + frametime&lt;br /&gt;
      else&lt;br /&gt;
         mouse_reset_counter = 0&lt;br /&gt;
      end&lt;br /&gt;
&lt;br /&gt;
      -- if center mouse button has been pressed long enough&lt;br /&gt;
      -- reset the mouse&lt;br /&gt;
      if mouse_reset_counter &amp;gt; 0.1 then&lt;br /&gt;
         io.forceMousePosition(mouse_center_x, mouse_center_y)&lt;br /&gt;
         mouse_reset_counter = 0&lt;br /&gt;
      end&lt;br /&gt;
&lt;br /&gt;
      -- get control values&lt;br /&gt;
      mouse_x = io.getMouseX()&lt;br /&gt;
      mouse_y = io.getMouseY()&lt;br /&gt;
      controls = ba.getControlInfo()&lt;br /&gt;
&lt;br /&gt;
      if mousecontrolmode == 1 then&lt;br /&gt;
&lt;br /&gt;
         -- make sure we aint gonna go off the boundaries...&lt;br /&gt;
         do_boundaries_check(mouseboundaries)&lt;br /&gt;
         -- end of boundaries check&lt;br /&gt;
&lt;br /&gt;
         -- define the color of the cursor&lt;br /&gt;
         if mousecolors == nil then&lt;br /&gt;
            gr.setColor(0,64,220,196)&lt;br /&gt;
         else&lt;br /&gt;
            gr.setColor(mousecolors[1],mousecolors[2],mousecolors[3],mousecolors[4])&lt;br /&gt;
         end&lt;br /&gt;
&lt;br /&gt;
         -- get the actual control values&lt;br /&gt;
         current_h = mouse_control_A(mouse_x, mouse_center_x, &amp;quot;x&amp;quot;)&lt;br /&gt;
         current_p = mouseinvert * mouse_control_A(mouse_y, mouse_center_y, &amp;quot;y&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
         -- increment, not replace the existing values&lt;br /&gt;
         controls.Heading = current_h + controls.Heading&lt;br /&gt;
         controls.Pitch = current_p + controls.Pitch&lt;br /&gt;
&lt;br /&gt;
         -- get draw position&lt;br /&gt;
         center_x = scr_width / 2&lt;br /&gt;
         center_y = scr_height / 2&lt;br /&gt;
         drawpos_x = center_x + (current_h * 300)&lt;br /&gt;
         drawpos_y = center_y + (current_p * 300)&lt;br /&gt;
&lt;br /&gt;
         -- draw cursor&lt;br /&gt;
         if no_bitmap == true then&lt;br /&gt;
            gr.drawGradientLine(drawpos_x, drawpos_y, drawpos_x + 20, drawpos_y - 20)&lt;br /&gt;
            gr.drawGradientLine(drawpos_x, drawpos_y, drawpos_x - 20, drawpos_y + 20)&lt;br /&gt;
            gr.drawGradientLine(drawpos_x, drawpos_y, drawpos_x + 20, drawpos_y + 20)&lt;br /&gt;
            gr.drawGradientLine(drawpos_x, drawpos_y, drawpos_x - 20, drawpos_y - 20)&lt;br /&gt;
         else&lt;br /&gt;
            gr.drawMonochromeImage(mouse_bm, drawpos_x - mouse_bm_w, drawpos_y - mouse_bm_h, drawpos_x + mouse_bm_w, drawpos_y + mouse_bm_h)&lt;br /&gt;
         end&lt;br /&gt;
      end&lt;br /&gt;
   else&lt;br /&gt;
      end_of_pause = true&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
]&lt;br /&gt;
&lt;br /&gt;
$Application: FS2_Open&lt;br /&gt;
$On Mission End:&lt;br /&gt;
&lt;br /&gt;
[&lt;br /&gt;
&lt;br /&gt;
boolscriptmouse = false&lt;br /&gt;
ba.setControlMode(NORMAL_CONTROLS)&lt;br /&gt;
if mouse_reset_on_end == true then&lt;br /&gt;
   io.MouseControlStatus = true&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
]&lt;br /&gt;
&lt;br /&gt;
#End&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Configuration file==&lt;br /&gt;
Filename &amp;#039;&amp;#039;&amp;#039;mouse_script.cfg&amp;#039;&amp;#039;&amp;#039;, placed into &amp;#039;&amp;#039;&amp;#039;.../data/scripts/&amp;#039;&amp;#039;&amp;#039; directory&lt;br /&gt;
&amp;lt;pre&amp;gt;Sensitivity:         350&lt;br /&gt;
Sensitivity Curve:   1.5&lt;br /&gt;
Control Mode:        1&lt;br /&gt;
Deadzone:            2&lt;br /&gt;
Mouse Invert:        0&lt;br /&gt;
Boundary Limit:      20&lt;br /&gt;
Indicator Color:     255, 255, 0, 64&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Sensitivity&amp;#039;&amp;#039;&amp;#039; is basically defines the amount of pixels from the center of the screen that the script will read (limited from 100 to 600)&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Sensitivity Curve&amp;#039;&amp;#039;&amp;#039; is exponent for the value&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Control Mode&amp;#039;&amp;#039;&amp;#039; is just option to toggle the - possible, not yet implemented - alternate control modes on&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Deadzone&amp;#039;&amp;#039;&amp;#039; defines the deadzone for the control input&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Mouse Invert&amp;#039;&amp;#039;&amp;#039; allows mouse controls to be inverted&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Boundary Limit&amp;#039;&amp;#039;&amp;#039; defines the limit for the cursor from the edge of the screen.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Indicator Color&amp;#039;&amp;#039;&amp;#039; defines the used draw color of the mouse flight indicator&lt;br /&gt;
&lt;br /&gt;
Recommendations... &amp;#039;&amp;#039;&amp;#039;(sensitivity + deadzone + boundary limit) * 2&amp;#039;&amp;#039;&amp;#039; should be greater than the smaller dimension of the screen.&lt;br /&gt;
&lt;br /&gt;
==Additional files==&lt;br /&gt;
Script will accept &amp;#039;&amp;#039;&amp;#039;mouse_ret_2.dds&amp;#039;&amp;#039;&amp;#039; as the mouse indicator but should the effect be missing the script should revert to simple 2d draw icon (icon is automatically centered).&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripting_Examples]]&lt;/div&gt;</summary>
		<author><name>Wanderer</name></author>
	</entry>
</feed>