ObjFW  Diff

Differences From Artifact [9240091586]:

To Artifact [5edf21e397]:


122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
		[pressedButtons addObject: @"C-Stick Down"];

	[pressedButtons makeImmutable];

	return pressedButtons;
}

- (size_t)numAxes
{
	return 1;
}

- (OFPoint)positionOfAxisWithIndex: (size_t)index
{
	circlePosition pos;

	if (index > 0)
		@throw [OFOutOfRangeException exception];

	hidCircleRead(&pos);







|




|







122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
		[pressedButtons addObject: @"C-Stick Down"];

	[pressedButtons makeImmutable];

	return pressedButtons;
}

- (size_t)numAnalogSticks
{
	return 1;
}

- (OFPoint)positionOfAnalogStickWithIndex: (size_t)index
{
	circlePosition pos;

	if (index > 0)
		@throw [OFOutOfRangeException exception];

	hidCircleRead(&pos);