本文整理汇总了C#中PointerType类的典型用法代码示例。如果您正苦于以下问题:C# PointerType类的具体用法?C# PointerType怎么用?C# PointerType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PointerType类属于命名空间,在下文中一共展示了PointerType类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: GetPointerPos
public static Vector3 GetPointerPos(PointerType type) {
if (_pointerPosDict.ContainsKey (type)) {
return _pointerPosDict[type];
} else {
return Vector3.zero;
}
}
开发者ID:honi90,项目名称:LeapMotionVRInterface,代码行数:7,代码来源:InteractionManager.cs
示例2: SetPointerPos
public static void SetPointerPos(PointerType type, Vector3 pos) {
if (_pointerPosDict.ContainsKey (type)) {
_pointerPosDict [type] = pos;
} else {
_pointerPosDict.Add (type, pos);
}
}
开发者ID:honi90,项目名称:LeapMotionVRInterface,代码行数:7,代码来源:InteractionManager.cs
示例3: Screen
public Screen()
{
_pointer = PointerType.DEFAULT;
sb = new SpriteBatch(DCSG.MainObject.GraphicsDevice);
DCSG.OnUpdate += new DCSG.XNAHookEvent(Update);
DCSG.OnDraw += new DCSG.XNADrawEvent(Draw);
}
开发者ID:reelgood,项目名称:dcsg,代码行数:7,代码来源:Screens.cs
示例4: PointerDown
internal override bool PointerDown(Microsoft.Xna.Framework.Vector2 position, PointerType pointerType)
{
isPressed = true;
lastPos = position;
return true;
}
开发者ID:CAMongrel,项目名称:WinWar,代码行数:7,代码来源:UIMapControlInputHandlerEnhancedTouch.cs
示例5: PointerUp
internal override bool PointerUp(Microsoft.Xna.Framework.Vector2 position, PointerType pointerType)
{
isPressed = false;
SelectUnitAt (position);
return true;
}
开发者ID:CAMongrel,项目名称:WinWar,代码行数:8,代码来源:UIMapControlInputHandlerEnhancedTouch.cs
示例6: Build
public void Build(PointerSettings pSettings, PointerType type) {
_type = type;
_pointerRendererObj = new GameObject ("Renderer");
_pointerRendererObj.transform.SetParent (gameObject.transform, false);
_uiPointer = _pointerRendererObj.AddComponent<UIPointer> ();
_uiPointer.Build (pSettings, _type);
}
开发者ID:honi90,项目名称:LeapMotionVRInterface,代码行数:9,代码来源:Pointer.cs
示例7: PointerEvent
/// <summary>
/// Initializes a new instance of the <see cref="PointerEvent" /> class.
/// </summary>
/// <param name="pointerId">The pointer id.</param>
/// <param name="position">The position.</param>
/// <param name="deltaPosition">The delta position.</param>
/// <param name="deltaTime">The delta time.</param>
/// <param name="state">The state.</param>
/// <param name="pointerType">Type of the pointer.</param>
/// <param name="isPrimary">if set to <c>true</c> [is primary].</param>
internal PointerEvent(int pointerId, Vector2 position, Vector2 deltaPosition, TimeSpan deltaTime, PointerState state, PointerType pointerType, bool isPrimary)
{
PointerId = pointerId;
Position = position;
DeltaPosition = deltaPosition;
DeltaTime = deltaTime;
State = state;
PointerType = pointerType;
IsPrimary = isPrimary;
}
开发者ID:Kryptos-FR,项目名称:xenko-reloaded,代码行数:20,代码来源:PointerEvent.cs
示例8: PointerUp
internal static bool PointerUp(Microsoft.Xna.Framework.Vector2 position, PointerType pointerType)
{
for (int i = windows.Count - 1; i >= 0; i--)
{
if (!WinWarCS.Util.MathHelper.InsideRect(position, new Rectangle((int)windows[i].X, (int)windows[i].Y, windows[i].Width, windows[i].Height)))
continue;
if (windows[i].PointerUp(position, pointerType))
return true;
}
return false;
}
开发者ID:CAMongrel,项目名称:WinWar,代码行数:13,代码来源:UIWindowManager.cs
示例9: PointerDown
internal override bool PointerDown(Microsoft.Xna.Framework.Vector2 position, PointerType pointerType)
{
if (pointerType == PointerType.LeftMouse)
{
isLeftPressed = true;
selectionRectangle.X = position.X;
selectionRectangle.Y = position.Y;
}
if (pointerType == PointerType.RightMouse)
isRightPressed = true;
return true;
}
开发者ID:CAMongrel,项目名称:WinWar,代码行数:14,代码来源:UIMapControlInputHandlerEnhancedMouse.cs
示例10: CheckInvalidOperators
private void CheckInvalidOperators(Class @class)
{
foreach (var @operator in @class.Operators.Where(o => o.IsGenerated))
{
if (!IsValidOperatorOverload(@operator))
{
Driver.Diagnostics.Debug("Invalid operator overload {0}::{1}",
@class.OriginalName, @operator.OperatorKind);
@operator.ExplicitlyIgnore();
continue;
}
if (@operator.IsNonMemberOperator)
continue;
if (@operator.OperatorKind == CXXOperatorKind.Subscript)
{
CreateIndexer(@class, @operator);
}
else
{
// Handle missing operator parameters
if (@operator.IsStatic)
@operator.Parameters = @operator.Parameters.Skip(1).ToList();
if (@operator.ConversionType.Type == null || @operator.Parameters.Count == 0)
{
var type = new PointerType
{
QualifiedPointee = new QualifiedType(new TagType(@class)),
Modifier = PointerType.TypeModifier.LVReference
};
@operator.Parameters.Insert(0, new Parameter
{
Name = Generator.GeneratedIdentifier("op"),
QualifiedType = new QualifiedType(type),
Kind = ParameterKind.OperatorParameter
});
}
}
}
}
开发者ID:daxiazh,项目名称:CppSharp,代码行数:43,代码来源:CheckOperatorsOverloads.cs
示例11: Build
// Use this for initialization
internal void Build(PointerSettings pSettings, PointerType type) {
_type = type;
_color = pSettings.Color;
_radiusNormal = pSettings.RadiusNormal;
_radiusHighlighted = pSettings.RadiusHighlighted;
_thickness = pSettings.Thickness;
_pointerObj = new GameObject ("Pointer");
_pointerObj.transform.SetParent (gameObject.transform, false);
MeshRenderer meshRenderer = _pointerObj.AddComponent <MeshRenderer> ();
meshRenderer.sharedMaterial = ShortcutUtil.GetMaterial ();
_pointerObj.AddComponent<MeshFilter> ();
_meshBuilder = new MeshBuilder ();
_pointerObj.GetComponent<MeshFilter> ().sharedMesh = _meshBuilder.Mesh;
}
开发者ID:honi90,项目名称:LeapMotionVRInterface,代码行数:22,代码来源:UIPointer.cs
示例12: PointerDown
internal override bool PointerDown(Microsoft.Xna.Framework.Vector2 position, PointerType pointerType)
{
if (pointerType == PointerType.LeftMouse)
{
isLeftPressed = true;
}
if (pointerType == PointerType.RightMouse)
{
isRightPressed = true;
}
bool shouldCenter = isLeftPressed;
if (MapControl.InputHandler.InputMode == InputMode.Classic)
shouldCenter |= isRightPressed;
if (shouldCenter)
{
CenterOnPosition (position);
}
return base.PointerDown (position, pointerType);
}
开发者ID:CAMongrel,项目名称:WinWar,代码行数:22,代码来源:UIMinimapControl.cs
示例13: HandleDecl
bool HandleDecl(TemplateTypeParameter parameter, PointerDecl p, PointerType r)
{
return r != null &&
r.DeclarationOrExpressionBase is PointerDecl &&
HandleDecl(parameter, p.InnerDeclaration, r.Base);
}
开发者ID:Extrawurst,项目名称:D_Parser,代码行数:6,代码来源:TemplateTypeParameterDeduction.cs
示例14: PointerType
internal PointerType(PointerType.Internal native)
: this(&native)
{
}
开发者ID:kidleon,项目名称:CppSharp,代码行数:4,代码来源:AST.cs
示例15: PointerType
private PointerType(PointerType.Internal native)
: this(__CopyValue(native))
{
__ownsNativeInstance = true;
}
开发者ID:KonajuGames,项目名称:CppSharp,代码行数:5,代码来源:AST.cs
示例16: PointerType
internal PointerType(PointerType.Internal native)
: this(__CopyValue(native))
{
}
开发者ID:vovkasm,项目名称:CppSharp,代码行数:4,代码来源:AST.cs
示例17: PointerUp
internal override void PointerUp(Microsoft.Xna.Framework.Vector2 position, PointerType pointerType)
{
base.PointerUp(position, pointerType);
MainGame.WinWarGame.SetNextGameScreen(new MenuGameScreen(false));
}
开发者ID:CAMongrel,项目名称:WinWar,代码行数:6,代码来源:BlizzardGameScreen.cs
示例18: PointerType
private PointerType(PointerType.Internal native)
: this(__CopyValue(native))
{
__ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this;
}
开发者ID:RainsSoft,项目名称:CppSharp,代码行数:6,代码来源:AST.cs
示例19: __CreateInstance
public static PointerType __CreateInstance(PointerType.Internal native)
{
return new PointerType(native);
}
开发者ID:RainsSoft,项目名称:CppSharp,代码行数:4,代码来源:AST.cs
示例20: PointerType
private PointerType(PointerType.Internal native, bool skipVTables = false)
: this(__CopyValue(native), skipVTables)
{
__ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this;
}
开发者ID:CSRedRat,项目名称:CppSharp,代码行数:6,代码来源:AST.cs
注:本文中的PointerType类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论