@@ -95,37 +95,33 @@ internal enum MouseButton
95
95
internal class PointerInputDevice : InputDevice
96
96
{
97
97
private PointerKind pointerKind ;
98
- private bool isPrimary ;
99
98
100
99
/// <summary>
101
100
/// Initializes a new instance of the <see cref="PointerInputDevice"/> class.
102
101
/// </summary>
103
102
public PointerInputDevice ( )
104
- : this ( PointerKind . Mouse , true )
103
+ : this ( PointerKind . Mouse )
105
104
{
106
105
}
107
106
108
107
/// <summary>
109
108
/// Initializes a new instance of the <see cref="PointerInputDevice"/> class.
110
109
/// </summary>
111
110
/// <param name="pointerKind">The kind of pointer represented by this input device.</param>
112
- /// <param name="isPrimary">A value indicating whether the pointer device is the primary pointer device.</param>
113
- public PointerInputDevice ( PointerKind pointerKind , bool isPrimary )
114
- : this ( pointerKind , isPrimary , Guid . NewGuid ( ) . ToString ( ) )
111
+ public PointerInputDevice ( PointerKind pointerKind )
112
+ : this ( pointerKind , Guid . NewGuid ( ) . ToString ( ) )
115
113
{
116
114
}
117
115
118
116
/// <summary>
119
117
/// Initializes a new instance of the <see cref="PointerInputDevice"/> class.
120
118
/// </summary>
121
119
/// <param name="pointerKind">The kind of pointer represented by this input device.</param>
122
- /// <param name="isPrimary">A value indicating whether the pointer device is the primary pointer device.</param>
123
120
/// <param name="deviceName">The unique name for this input device.</param>
124
- public PointerInputDevice ( PointerKind pointerKind , bool isPrimary , string deviceName )
121
+ public PointerInputDevice ( PointerKind pointerKind , string deviceName )
125
122
: base ( deviceName )
126
123
{
127
124
this . pointerKind = pointerKind ;
128
- this . isPrimary = isPrimary ;
129
125
}
130
126
131
127
/// <summary>
@@ -148,7 +144,6 @@ public override Dictionary<string, object> ToDictionary()
148
144
toReturn [ "id" ] = this . DeviceName ;
149
145
150
146
Dictionary < string , object > parameters = new Dictionary < string , object > ( ) ;
151
- parameters [ "primary" ] = this . isPrimary ;
152
147
parameters [ "pointerType" ] = this . pointerKind . ToString ( ) . ToLowerInvariant ( ) ;
153
148
toReturn [ "parameters" ] = parameters ;
154
149
0 commit comments