<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Controls%3A%3AisInputDisabled</id>
	<title>Controls::isInputDisabled - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Controls%3A%3AisInputDisabled"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Controls::isInputDisabled&amp;action=history"/>
	<updated>2026-07-24T20:25:49Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Controls::isInputDisabled&amp;diff=762&amp;oldid=prev</id>
		<title>imported&gt;Shr0x: /* See also */</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Controls::isInputDisabled&amp;diff=762&amp;oldid=prev"/>
		<updated>2024-05-14T10:56:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;See also&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Seems to return true if the input is currently disabled. &amp;#039;_GET_LAST_INPUT_METHOD&amp;#039; didn&amp;#039;t seem very accurate, but I&amp;#039;ve left the original description below.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;--&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;index usually 2&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;returns true if the last input method was made with mouse + keyboard, false if it was made with a gamepad&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;0, 1 and 2 used in the scripts. 0 is by far the most common of them.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;mp.game.controls.isInputDisabled(inputGroup);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;inputGroup:&amp;#039;&amp;#039;&amp;#039; int&lt;br /&gt;
===Return value===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Boolean&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// test if the player is using a controller vs keyboard/mouse&lt;br /&gt;
&lt;br /&gt;
function isUsingController(){&lt;br /&gt;
    return !mp.game.controls.isInputDisabled(0);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Controls_functions_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Shr0x</name></author>
	</entry>
</feed>