The future is now. Read Hardware inputs from devices plugged into a computer, cross-platform!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
jinput2.10/docs/net/java/games/input/class-use/Controller.html

417 lines
22 KiB

<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.13) on Wed Jun 08 18:20:40 UTC 2022 -->
<title>Uses of Interface net.java.games.input.Controller (jinput API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2022-06-08">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
<script type="text/javascript" src="../../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../../jquery/jquery-3.5.1.js"></script>
<script type="text/javascript" src="../../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Interface net.java.games.input.Controller (jinput API)";
}
}
catch(err) {
}
//-->
var pathtoroot = "../../../../../";
var useModuleDirectories = true;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../index.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../Controller.html" title="interface in net.java.games.input">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<a id="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<main role="main">
<div class="header">
<h2 title="Uses of Interface net.java.games.input.Controller" class="title">Uses of Interface<br>net.java.games.input.Controller</h2>
</div>
<div class="classUseContainer">
<ul class="blockList">
<li class="blockList">
<table class="useSummary">
<caption><span>Packages that use <a href="../Controller.html" title="interface in net.java.games.input">Controller</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Package</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<th class="colFirst" scope="row"><a href="#net.java.games.input">net.java.games.input</a></th>
<td class="colLast">&nbsp;</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<ul class="blockList">
<li class="blockList">
<section role="region"><a id="net.java.games.input">
<!-- -->
</a>
<h3>Uses of <a href="../Controller.html" title="interface in net.java.games.input">Controller</a> in <a href="../package-summary.html">net.java.games.input</a></h3>
<table class="useSummary">
<caption><span>Classes in <a href="../package-summary.html">net.java.games.input</a> that implement <a href="../Controller.html" title="interface in net.java.games.input">Controller</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Class</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../AbstractController.html" title="class in net.java.games.input">AbstractController</a></span></code></th>
<td class="colLast">
<div class="block">An AbstractController is a skeleton implementation of a controller that
contains a fixed number of axes, controllers, and rumblers.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../Keyboard.html" title="class in net.java.games.input">Keyboard</a></span></code></th>
<td class="colLast">
<div class="block">A Keyboard is a type of controller consisting of a single controller,
they keypad, which contains several axes (the keys).</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../LinuxCombinedController.html" title="class in net.java.games.input">LinuxCombinedController</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../Mouse.html" title="class in net.java.games.input">Mouse</a></span></code></th>
<td class="colLast">
<div class="block">A Mouse is a type of controller consisting of two child controllers,
a ball and a button pad.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../WinTabDevice.html" title="class in net.java.games.input">WinTabDevice</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
</tbody>
</table>
<table class="useSummary">
<caption><span>Methods in <a href="../package-summary.html">net.java.games.input</a> that return <a href="../Controller.html" title="interface in net.java.games.input">Controller</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../Controller.html" title="interface in net.java.games.input">Controller</a></code></td>
<th class="colSecond" scope="row"><span class="typeNameLabel">ControllerEvent.</span><code><span class="memberNameLink"><a href="../ControllerEvent.html#getController()">getController</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the controller for this event.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../Controller.html" title="interface in net.java.games.input">Controller</a>[]</code></td>
<th class="colSecond" scope="row"><span class="typeNameLabel">AbstractController.</span><code><span class="memberNameLink"><a href="../AbstractController.html#getControllers()">getControllers</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the controllers connected to make up this controller, or
an empty array if this controller contains no child controllers.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../Controller.html" title="interface in net.java.games.input">Controller</a>[]</code></td>
<th class="colSecond" scope="row"><span class="typeNameLabel">AWTEnvironmentPlugin.</span><code><span class="memberNameLink"><a href="../AWTEnvironmentPlugin.html#getControllers()">getControllers</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../Controller.html" title="interface in net.java.games.input">Controller</a>[]</code></td>
<th class="colSecond" scope="row"><span class="typeNameLabel">Controller.</span><code><span class="memberNameLink"><a href="../Controller.html#getControllers()">getControllers</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the controllers connected to make up this controller, or
an empty array if this controller contains no child controllers.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>abstract <a href="../Controller.html" title="interface in net.java.games.input">Controller</a>[]</code></td>
<th class="colSecond" scope="row"><span class="typeNameLabel">ControllerEnvironment.</span><code><span class="memberNameLink"><a href="../ControllerEnvironment.html#getControllers()">getControllers</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns a list of all controllers available to this environment,
or an empty array if there are no controllers in this environment.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../Controller.html" title="interface in net.java.games.input">Controller</a>[]</code></td>
<th class="colSecond" scope="row"><span class="typeNameLabel">DirectAndRawInputEnvironmentPlugin.</span><code><span class="memberNameLink"><a href="../DirectAndRawInputEnvironmentPlugin.html#getControllers()">getControllers</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../Controller.html" title="interface in net.java.games.input">Controller</a>[]</code></td>
<th class="colSecond" scope="row"><span class="typeNameLabel">DirectInputEnvironmentPlugin.</span><code><span class="memberNameLink"><a href="../DirectInputEnvironmentPlugin.html#getControllers()">getControllers</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../Controller.html" title="interface in net.java.games.input">Controller</a>[]</code></td>
<th class="colSecond" scope="row"><span class="typeNameLabel">LinuxEnvironmentPlugin.</span><code><span class="memberNameLink"><a href="../LinuxEnvironmentPlugin.html#getControllers()">getControllers</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns a list of all controllers available to this environment,
or an empty array if there are no controllers in this environment.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../Controller.html" title="interface in net.java.games.input">Controller</a>[]</code></td>
<th class="colSecond" scope="row"><span class="typeNameLabel">OSXEnvironmentPlugin.</span><code><span class="memberNameLink"><a href="../OSXEnvironmentPlugin.html#getControllers()">getControllers</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../Controller.html" title="interface in net.java.games.input">Controller</a>[]</code></td>
<th class="colSecond" scope="row"><span class="typeNameLabel">RawInputEnvironmentPlugin.</span><code><span class="memberNameLink"><a href="../RawInputEnvironmentPlugin.html#getControllers()">getControllers</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../Controller.html" title="interface in net.java.games.input">Controller</a>[]</code></td>
<th class="colSecond" scope="row"><span class="typeNameLabel">WinTabContext.</span><code><span class="memberNameLink"><a href="../WinTabContext.html#getControllers()">getControllers</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../Controller.html" title="interface in net.java.games.input">Controller</a>[]</code></td>
<th class="colSecond" scope="row"><span class="typeNameLabel">WinTabEnvironmentPlugin.</span><code><span class="memberNameLink"><a href="../WinTabEnvironmentPlugin.html#getControllers()">getControllers</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../Controller.html" title="interface in net.java.games.input">Controller</a>[]</code></td>
<th class="colSecond" scope="row"><span class="typeNameLabel">AWTEnvironmentPlugin.</span><code><span class="memberNameLink"><a href="../AWTEnvironmentPlugin.html#rescanControllers()">rescanControllers</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns a list of all controllers available to this environment,
or an empty array if there are no controllers in this environment.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>abstract <a href="../Controller.html" title="interface in net.java.games.input">Controller</a>[]</code></td>
<th class="colSecond" scope="row"><span class="typeNameLabel">ControllerEnvironment.</span><code><span class="memberNameLink"><a href="../ControllerEnvironment.html#rescanControllers()">rescanControllers</a></span>()</code></th>
<td class="colLast">
<div class="block">Rescans the devices and provides a list of new controllers.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../Controller.html" title="interface in net.java.games.input">Controller</a>[]</code></td>
<th class="colSecond" scope="row"><span class="typeNameLabel">DirectAndRawInputEnvironmentPlugin.</span><code><span class="memberNameLink"><a href="../DirectAndRawInputEnvironmentPlugin.html#rescanControllers()">rescanControllers</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../Controller.html" title="interface in net.java.games.input">Controller</a>[]</code></td>
<th class="colSecond" scope="row"><span class="typeNameLabel">DirectInputEnvironmentPlugin.</span><code><span class="memberNameLink"><a href="../DirectInputEnvironmentPlugin.html#rescanControllers()">rescanControllers</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../Controller.html" title="interface in net.java.games.input">Controller</a>[]</code></td>
<th class="colSecond" scope="row"><span class="typeNameLabel">LinuxEnvironmentPlugin.</span><code><span class="memberNameLink"><a href="../LinuxEnvironmentPlugin.html#rescanControllers()">rescanControllers</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../Controller.html" title="interface in net.java.games.input">Controller</a>[]</code></td>
<th class="colSecond" scope="row"><span class="typeNameLabel">OSXEnvironmentPlugin.</span><code><span class="memberNameLink"><a href="../OSXEnvironmentPlugin.html#rescanControllers()">rescanControllers</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../Controller.html" title="interface in net.java.games.input">Controller</a>[]</code></td>
<th class="colSecond" scope="row"><span class="typeNameLabel">RawInputEnvironmentPlugin.</span><code><span class="memberNameLink"><a href="../RawInputEnvironmentPlugin.html#rescanControllers()">rescanControllers</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../Controller.html" title="interface in net.java.games.input">Controller</a>[]</code></td>
<th class="colSecond" scope="row"><span class="typeNameLabel">WinTabEnvironmentPlugin.</span><code><span class="memberNameLink"><a href="../WinTabEnvironmentPlugin.html#rescanControllers()">rescanControllers</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
</tbody>
</table>
<table class="useSummary">
<caption><span>Methods in <a href="../package-summary.html">net.java.games.input</a> with parameters of type <a href="../Controller.html" title="interface in net.java.games.input">Controller</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
<th class="colSecond" scope="row"><span class="typeNameLabel">ControllerEnvironment.</span><code><span class="memberNameLink"><a href="../ControllerEnvironment.html#fireControllerAdded(net.java.games.input.Controller)">fireControllerAdded</a></span>&#8203;(<a href="../Controller.html" title="interface in net.java.games.input">Controller</a>&nbsp;c)</code></th>
<td class="colLast">
<div class="block">Creates and sends an event to the controller listeners that a controller
has been added.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<th class="colSecond" scope="row"><span class="typeNameLabel">ControllerEnvironment.</span><code><span class="memberNameLink"><a href="../ControllerEnvironment.html#fireControllerRemoved(net.java.games.input.Controller)">fireControllerRemoved</a></span>&#8203;(<a href="../Controller.html" title="interface in net.java.games.input">Controller</a>&nbsp;c)</code></th>
<td class="colLast">
<div class="block">Creates and sends an event to the controller listeners that a controller
has been lost.</div>
</td>
</tr>
</tbody>
</table>
<table class="useSummary">
<caption><span>Constructors in <a href="../package-summary.html">net.java.games.input</a> with parameters of type <a href="../Controller.html" title="interface in net.java.games.input">Controller</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../AbstractController.html#%3Cinit%3E(java.lang.String,net.java.games.input.Component%5B%5D,net.java.games.input.Controller%5B%5D,net.java.games.input.Rumbler%5B%5D)">AbstractController</a></span>&#8203;(java.lang.String&nbsp;name,
<a href="../Component.html" title="interface in net.java.games.input">Component</a>[]&nbsp;components,
<a href="../Controller.html" title="interface in net.java.games.input">Controller</a>[]&nbsp;children,
<a href="../Rumbler.html" title="interface in net.java.games.input">Rumbler</a>[]&nbsp;rumblers)</code></th>
<td class="colLast">
<div class="block">Protected constructor for a controller containing the specified
axes, child controllers, and rumblers</div>
</td>
</tr>
<tr class="rowColor">
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../ControllerEvent.html#%3Cinit%3E(net.java.games.input.Controller)">ControllerEvent</a></span>&#8203;(<a href="../Controller.html" title="interface in net.java.games.input">Controller</a>&nbsp;c)</code></th>
<td class="colLast">
<div class="block">Creates a controller event object.</div>
</td>
</tr>
<tr class="altColor">
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../Keyboard.html#%3Cinit%3E(java.lang.String,net.java.games.input.Component%5B%5D,net.java.games.input.Controller%5B%5D,net.java.games.input.Rumbler%5B%5D)">Keyboard</a></span>&#8203;(java.lang.String&nbsp;name,
<a href="../Component.html" title="interface in net.java.games.input">Component</a>[]&nbsp;keys,
<a href="../Controller.html" title="interface in net.java.games.input">Controller</a>[]&nbsp;children,
<a href="../Rumbler.html" title="interface in net.java.games.input">Rumbler</a>[]&nbsp;rumblers)</code></th>
<td class="colLast">
<div class="block">Protected constructor.</div>
</td>
</tr>
<tr class="rowColor">
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../Mouse.html#%3Cinit%3E(java.lang.String,net.java.games.input.Component%5B%5D,net.java.games.input.Controller%5B%5D,net.java.games.input.Rumbler%5B%5D)">Mouse</a></span>&#8203;(java.lang.String&nbsp;name,
<a href="../Component.html" title="interface in net.java.games.input">Component</a>[]&nbsp;components,
<a href="../Controller.html" title="interface in net.java.games.input">Controller</a>[]&nbsp;children,
<a href="../Rumbler.html" title="interface in net.java.games.input">Rumbler</a>[]&nbsp;rumblers)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
</tbody>
</table>
</section>
</li>
</ul>
</li>
</ul>
</div>
</main>
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../index.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../Controller.html" title="interface in net.java.games.input">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<a id="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
</footer>
</body>
</html>