471 lines
22 KiB
HTML
471 lines
22 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||
|
<!--NewPage-->
|
||
|
<HTML>
|
||
|
<HEAD>
|
||
|
<!-- Generated by javadoc (build 1.6.0_24) on Sun Apr 15 20:18:19 CEST 2012 -->
|
||
|
<TITLE>
|
||
|
GamePadState
|
||
|
</TITLE>
|
||
|
|
||
|
<META NAME="date" CONTENT="2012-04-15">
|
||
|
|
||
|
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
|
||
|
|
||
|
<SCRIPT type="text/javascript">
|
||
|
function windowTitle()
|
||
|
{
|
||
|
if (location.href.indexOf('is-external=true') == -1) {
|
||
|
parent.document.title="GamePadState";
|
||
|
}
|
||
|
}
|
||
|
</SCRIPT>
|
||
|
<NOSCRIPT>
|
||
|
</NOSCRIPT>
|
||
|
|
||
|
</HEAD>
|
||
|
|
||
|
<BODY BGCOLOR="white" onload="windowTitle();">
|
||
|
<HR>
|
||
|
|
||
|
|
||
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
||
|
<A NAME="navbar_top"><!-- --></A>
|
||
|
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
||
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
||
|
<TR>
|
||
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
||
|
<A NAME="navbar_top_firstrow"><!-- --></A>
|
||
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
||
|
<TR ALIGN="center" VALIGN="top">
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/GamePadState.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
</TD>
|
||
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
||
|
</EM>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
|
||
|
<TR>
|
||
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||
|
<A HREF="../../../../Microsoft/Xna/Framework/Input/GamePadDPad.html" title="class in Microsoft.Xna.Framework.Input"><B>PREV CLASS</B></A>
|
||
|
<A HREF="../../../../Microsoft/Xna/Framework/Input/GamePadThumbSticks.html" title="class in Microsoft.Xna.Framework.Input"><B>NEXT CLASS</B></A></FONT></TD>
|
||
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||
|
<A HREF="../../../../index.html?Microsoft/Xna/Framework/Input/GamePadState.html" target="_top"><B>FRAMES</B></A>
|
||
|
<A HREF="GamePadState.html" target="_top"><B>NO FRAMES</B></A>
|
||
|
<SCRIPT type="text/javascript">
|
||
|
<!--
|
||
|
if(window==top) {
|
||
|
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
||
|
}
|
||
|
//-->
|
||
|
</SCRIPT>
|
||
|
<NOSCRIPT>
|
||
|
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
||
|
</NOSCRIPT>
|
||
|
|
||
|
|
||
|
</FONT></TD>
|
||
|
</TR>
|
||
|
<TR>
|
||
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||
|
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
||
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||
|
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<A NAME="skip-navbar_top"></A>
|
||
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
||
|
|
||
|
<HR>
|
||
|
<!-- ======== START OF CLASS DATA ======== -->
|
||
|
<H2>
|
||
|
<FONT SIZE="-1">
|
||
|
Microsoft.Xna.Framework.Input</FONT>
|
||
|
<BR>
|
||
|
Class GamePadState</H2>
|
||
|
<PRE>
|
||
|
java.lang.Object
|
||
|
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../System/ValueType.html" title="class in System">System.ValueType</A>
|
||
|
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>Microsoft.Xna.Framework.Input.GamePadState</B>
|
||
|
</PRE>
|
||
|
<HR>
|
||
|
<DL>
|
||
|
<DT><PRE>public final class <B>GamePadState</B><DT>extends <A HREF="../../../../System/ValueType.html" title="class in System">ValueType</A></DL>
|
||
|
</PRE>
|
||
|
|
||
|
<P>
|
||
|
Represents specific information about the state of an Xbox 360 Controller, including the current state of buttons and sticks.
|
||
|
<P>
|
||
|
|
||
|
<P>
|
||
|
<DL>
|
||
|
<DT><B>Author:</B></DT>
|
||
|
<DD>Halofreak1990</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<P>
|
||
|
<!-- =========== FIELD SUMMARY =========== -->
|
||
|
|
||
|
<A NAME="field_summary"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
||
|
<B>Field Summary</B></FONT></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> <A HREF="../../../../Microsoft/Xna/Framework/Input/GamePadButtons.html" title="class in Microsoft.Xna.Framework.Input">GamePadButtons</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../../Microsoft/Xna/Framework/Input/GamePadState.html#Buttons">Buttons</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
Returns a structure that identifies what buttons on the Xbox 360 controller are pressed.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> <A HREF="../../../../Microsoft/Xna/Framework/Input/GamePadDPad.html" title="class in Microsoft.Xna.Framework.Input">GamePadDPad</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../../Microsoft/Xna/Framework/Input/GamePadState.html#DPad">DPad</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
Returns a structure that identifies what directions of the directional pad on the Xbox 360 Controller are pressed.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> boolean</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../../Microsoft/Xna/Framework/Input/GamePadState.html#IsConnected">IsConnected</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
Indicates whether the Xbox 360 Controller is connected.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> <A HREF="../../../../Microsoft/Xna/Framework/Input/GamePadThumbSticks.html" title="class in Microsoft.Xna.Framework.Input">GamePadThumbSticks</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../../Microsoft/Xna/Framework/Input/GamePadState.html#ThumbSticks">ThumbSticks</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
Returns a structure that indicates the position of the Xbox 360 Controller sticks (thumbsticks).</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> <A HREF="../../../../Microsoft/Xna/Framework/Input/GamePadTriggers.html" title="class in Microsoft.Xna.Framework.Input">GamePadTriggers</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../../Microsoft/Xna/Framework/Input/GamePadState.html#Triggers">Triggers</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
Returns a structure that identifies the position of triggers on the Xbox 360 controller.</TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
|
||
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||
|
|
||
|
<A NAME="constructor_summary"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
||
|
<B>Constructor Summary</B></FONT></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD><CODE><B><A HREF="../../../../Microsoft/Xna/Framework/Input/GamePadState.html#GamePadState(Microsoft.Xna.Framework.Input.GamePadThumbSticks, Microsoft.Xna.Framework.Input.GamePadTriggers, Microsoft.Xna.Framework.Input.GamePadButtons, Microsoft.Xna.Framework.Input.GamePadDPad)">GamePadState</A></B>(<A HREF="../../../../Microsoft/Xna/Framework/Input/GamePadThumbSticks.html" title="class in Microsoft.Xna.Framework.Input">GamePadThumbSticks</A> thumbSticks,
|
||
|
<A HREF="../../../../Microsoft/Xna/Framework/Input/GamePadTriggers.html" title="class in Microsoft.Xna.Framework.Input">GamePadTriggers</A> triggers,
|
||
|
<A HREF="../../../../Microsoft/Xna/Framework/Input/GamePadButtons.html" title="class in Microsoft.Xna.Framework.Input">GamePadButtons</A> buttons,
|
||
|
<A HREF="../../../../Microsoft/Xna/Framework/Input/GamePadDPad.html" title="class in Microsoft.Xna.Framework.Input">GamePadDPad</A> dPad)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Initializes a new instance of the GamePadState class using the specified GamePadThumbSticks, GamePadTriggers, GamePadButtons, and GamePadDPad.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD><CODE><B><A HREF="../../../../Microsoft/Xna/Framework/Input/GamePadState.html#GamePadState(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2, float, float, Microsoft.Xna.Framework.Input.Buttons...)">GamePadState</A></B>(<A HREF="../../../../Microsoft/Xna/Framework/Vector2.html" title="class in Microsoft.Xna.Framework">Vector2</A> leftThumbStick,
|
||
|
<A HREF="../../../../Microsoft/Xna/Framework/Vector2.html" title="class in Microsoft.Xna.Framework">Vector2</A> rightThumbStick,
|
||
|
float leftTrigger,
|
||
|
float rightTrigger,
|
||
|
<A HREF="../../../../Microsoft/Xna/Framework/Input/Buttons.html" title="enum in Microsoft.Xna.Framework.Input">Buttons</A>... buttons)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Initializes a new instance of the GamePadState class with the specified stick, trigger, and button values.</TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
|
||
|
<!-- ========== METHOD SUMMARY =========== -->
|
||
|
|
||
|
<A NAME="method_summary"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
||
|
<B>Method Summary</B></FONT></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> boolean</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../../Microsoft/Xna/Framework/Input/GamePadState.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object obj)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Returns a value that indicates whether the current instance is equal to a specified object.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> int</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../../Microsoft/Xna/Framework/Input/GamePadState.html#hashCode()">hashCode</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Gets the hash code for this instance.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> java.lang.String</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../../Microsoft/Xna/Framework/Input/GamePadState.html#toString()">toString</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Retrieves a string representation of this object.</TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
||
|
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD><CODE>clone, finalize, getClass, notify, notifyAll, wait, wait, wait</CODE></TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
|
||
|
<P>
|
||
|
|
||
|
<!-- ============ FIELD DETAIL =========== -->
|
||
|
|
||
|
<A NAME="field_detail"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
||
|
<B>Field Detail</B></FONT></TH>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
|
||
|
<A NAME="Buttons"><!-- --></A><H3>
|
||
|
Buttons</H3>
|
||
|
<PRE>
|
||
|
public final <A HREF="../../../../Microsoft/Xna/Framework/Input/GamePadButtons.html" title="class in Microsoft.Xna.Framework.Input">GamePadButtons</A> <B>Buttons</B></PRE>
|
||
|
<DL>
|
||
|
<DD>Returns a structure that identifies what buttons on the Xbox 360 controller are pressed. Reference page contains links to related code samples.
|
||
|
<P>
|
||
|
<DL>
|
||
|
</DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="IsConnected"><!-- --></A><H3>
|
||
|
IsConnected</H3>
|
||
|
<PRE>
|
||
|
public final boolean <B>IsConnected</B></PRE>
|
||
|
<DL>
|
||
|
<DD>Indicates whether the Xbox 360 Controller is connected. Reference page contains links to related code samples.
|
||
|
<P>
|
||
|
<DL>
|
||
|
</DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="DPad"><!-- --></A><H3>
|
||
|
DPad</H3>
|
||
|
<PRE>
|
||
|
public final <A HREF="../../../../Microsoft/Xna/Framework/Input/GamePadDPad.html" title="class in Microsoft.Xna.Framework.Input">GamePadDPad</A> <B>DPad</B></PRE>
|
||
|
<DL>
|
||
|
<DD>Returns a structure that identifies what directions of the directional pad on the Xbox 360 Controller are pressed.
|
||
|
<P>
|
||
|
<DL>
|
||
|
</DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="ThumbSticks"><!-- --></A><H3>
|
||
|
ThumbSticks</H3>
|
||
|
<PRE>
|
||
|
public final <A HREF="../../../../Microsoft/Xna/Framework/Input/GamePadThumbSticks.html" title="class in Microsoft.Xna.Framework.Input">GamePadThumbSticks</A> <B>ThumbSticks</B></PRE>
|
||
|
<DL>
|
||
|
<DD>Returns a structure that indicates the position of the Xbox 360 Controller sticks (thumbsticks).
|
||
|
<P>
|
||
|
<DL>
|
||
|
</DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="Triggers"><!-- --></A><H3>
|
||
|
Triggers</H3>
|
||
|
<PRE>
|
||
|
public final <A HREF="../../../../Microsoft/Xna/Framework/Input/GamePadTriggers.html" title="class in Microsoft.Xna.Framework.Input">GamePadTriggers</A> <B>Triggers</B></PRE>
|
||
|
<DL>
|
||
|
<DD>Returns a structure that identifies the position of triggers on the Xbox 360 controller.
|
||
|
<P>
|
||
|
<DL>
|
||
|
</DL>
|
||
|
</DL>
|
||
|
|
||
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||
|
|
||
|
<A NAME="constructor_detail"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
||
|
<B>Constructor Detail</B></FONT></TH>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
|
||
|
<A NAME="GamePadState(Microsoft.Xna.Framework.Input.GamePadThumbSticks, Microsoft.Xna.Framework.Input.GamePadTriggers, Microsoft.Xna.Framework.Input.GamePadButtons, Microsoft.Xna.Framework.Input.GamePadDPad)"><!-- --></A><H3>
|
||
|
GamePadState</H3>
|
||
|
<PRE>
|
||
|
public <B>GamePadState</B>(<A HREF="../../../../Microsoft/Xna/Framework/Input/GamePadThumbSticks.html" title="class in Microsoft.Xna.Framework.Input">GamePadThumbSticks</A> thumbSticks,
|
||
|
<A HREF="../../../../Microsoft/Xna/Framework/Input/GamePadTriggers.html" title="class in Microsoft.Xna.Framework.Input">GamePadTriggers</A> triggers,
|
||
|
<A HREF="../../../../Microsoft/Xna/Framework/Input/GamePadButtons.html" title="class in Microsoft.Xna.Framework.Input">GamePadButtons</A> buttons,
|
||
|
<A HREF="../../../../Microsoft/Xna/Framework/Input/GamePadDPad.html" title="class in Microsoft.Xna.Framework.Input">GamePadDPad</A> dPad)</PRE>
|
||
|
<DL>
|
||
|
<DD>Initializes a new instance of the GamePadState class using the specified GamePadThumbSticks, GamePadTriggers, GamePadButtons, and GamePadDPad.
|
||
|
<P>
|
||
|
<DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>thumbSticks</CODE> - Initial stick state.<DD><CODE>triggers</CODE> - Initial trigger state.<DD><CODE>buttons</CODE> - Initial button state.<DD><CODE>dPad</CODE> - Initial directional pad state.</DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="GamePadState(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2, float, float, Microsoft.Xna.Framework.Input.Buttons...)"><!-- --></A><H3>
|
||
|
GamePadState</H3>
|
||
|
<PRE>
|
||
|
public <B>GamePadState</B>(<A HREF="../../../../Microsoft/Xna/Framework/Vector2.html" title="class in Microsoft.Xna.Framework">Vector2</A> leftThumbStick,
|
||
|
<A HREF="../../../../Microsoft/Xna/Framework/Vector2.html" title="class in Microsoft.Xna.Framework">Vector2</A> rightThumbStick,
|
||
|
float leftTrigger,
|
||
|
float rightTrigger,
|
||
|
<A HREF="../../../../Microsoft/Xna/Framework/Input/Buttons.html" title="enum in Microsoft.Xna.Framework.Input">Buttons</A>... buttons)</PRE>
|
||
|
<DL>
|
||
|
<DD>Initializes a new instance of the GamePadState class with the specified stick, trigger, and button values.
|
||
|
<P>
|
||
|
<DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>leftThumbStick</CODE> - Left stick value. Each axis is clamped between -1.0 and 1.0.<DD><CODE>rightThumbStick</CODE> - Right stick value. Each axis is clamped between -1.0 and 1.0.<DD><CODE>leftTrigger</CODE> - Left trigger value. This value is clamped between 0.0 and 1.0.<DD><CODE>rightTrigger</CODE> - Right trigger value. This value is clamped between 0.0 and 1.0.<DD><CODE>buttons</CODE> - Array or parameter list of Buttons to initialize as pressed.</DL>
|
||
|
</DL>
|
||
|
|
||
|
<!-- ============ METHOD DETAIL ========== -->
|
||
|
|
||
|
<A NAME="method_detail"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
||
|
<B>Method Detail</B></FONT></TH>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
|
||
|
<A NAME="equals(java.lang.Object)"><!-- --></A><H3>
|
||
|
equals</H3>
|
||
|
<PRE>
|
||
|
public boolean <B>equals</B>(java.lang.Object obj)</PRE>
|
||
|
<DL>
|
||
|
<DD>Returns a value that indicates whether the current instance is equal to a specified object.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>obj</CODE> - Object with which to make the comparison.
|
||
|
<DT><B>Returns:</B><DD>true if the current instance is equal to the specified object; false otherwise.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="hashCode()"><!-- --></A><H3>
|
||
|
hashCode</H3>
|
||
|
<PRE>
|
||
|
public int <B>hashCode</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD>Gets the hash code for this instance.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE>hashCode</CODE> in class <CODE>java.lang.Object</CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
|
||
|
<DT><B>Returns:</B><DD>Hash code for this object.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="toString()"><!-- --></A><H3>
|
||
|
toString</H3>
|
||
|
<PRE>
|
||
|
public java.lang.String <B>toString</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD>Retrieves a string representation of this object.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>String</CODE> - representation of this object.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<!-- ========= END OF CLASS DATA ========= -->
|
||
|
<HR>
|
||
|
|
||
|
|
||
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||
|
<A NAME="navbar_bottom"><!-- --></A>
|
||
|
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
||
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
||
|
<TR>
|
||
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
||
|
<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
||
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
||
|
<TR ALIGN="center" VALIGN="top">
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/GamePadState.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
</TD>
|
||
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
||
|
</EM>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
|
||
|
<TR>
|
||
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||
|
<A HREF="../../../../Microsoft/Xna/Framework/Input/GamePadDPad.html" title="class in Microsoft.Xna.Framework.Input"><B>PREV CLASS</B></A>
|
||
|
<A HREF="../../../../Microsoft/Xna/Framework/Input/GamePadThumbSticks.html" title="class in Microsoft.Xna.Framework.Input"><B>NEXT CLASS</B></A></FONT></TD>
|
||
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||
|
<A HREF="../../../../index.html?Microsoft/Xna/Framework/Input/GamePadState.html" target="_top"><B>FRAMES</B></A>
|
||
|
<A HREF="GamePadState.html" target="_top"><B>NO FRAMES</B></A>
|
||
|
<SCRIPT type="text/javascript">
|
||
|
<!--
|
||
|
if(window==top) {
|
||
|
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
||
|
}
|
||
|
//-->
|
||
|
</SCRIPT>
|
||
|
<NOSCRIPT>
|
||
|
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
||
|
</NOSCRIPT>
|
||
|
|
||
|
|
||
|
</FONT></TD>
|
||
|
</TR>
|
||
|
<TR>
|
||
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||
|
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
||
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||
|
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<A NAME="skip-navbar_bottom"></A>
|
||
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||
|
|
||
|
<HR>
|
||
|
|
||
|
</BODY>
|
||
|
</HTML>
|