Skip to content

Commit 18a1856

Browse files
Remove extended functions from Alloy FPS controller
1 parent e2c4a6f commit 18a1856

File tree

2 files changed

+2
-67
lines changed

2 files changed

+2
-67
lines changed

Controllers/HyperXKeyboardController/HyperXAlloyFPSController.cpp

Lines changed: 1 addition & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -370,33 +370,6 @@ void HyperXAlloyFPSController::SendColor
370370
hid_send_feature_report(dev, buf, 264);
371371
}
372372

373-
void HyperXAlloyFPSController::SendExtendedColor
374-
(
375-
unsigned char profile,
376-
unsigned char* color_data
377-
)
378-
{
379-
unsigned char buf[264];
380-
381-
/*-----------------------------------------------------*\
382-
| Zero out buffer |
383-
\*-----------------------------------------------------*/
384-
memset(buf, 0x00, sizeof(buf));
385-
386-
/*-----------------------------------------------------*\
387-
| Set up Color packet |
388-
\*-----------------------------------------------------*/
389-
buf[0x00] = 0x07;
390-
buf[0x01] = HYPERX_ALLOY_FPS_PACKET_ID_SET_COLOR;
391-
buf[0x02] = profile;
392-
buf[0x03] = HYPERX_ALLOY_FPS_COLOR_CHANNEL_EXTENDED;
393-
394-
/*-----------------------------------------------------*\
395-
| Send packet |
396-
\*-----------------------------------------------------*/
397-
hid_send_feature_report(dev, buf, 264);
398-
}
399-
400373
void HyperXAlloyFPSController::SendDirect
401374
(
402375
unsigned char color_channel,
@@ -430,30 +403,4 @@ void HyperXAlloyFPSController::SendDirect
430403
| Send packet |
431404
\*-----------------------------------------------------*/
432405
hid_send_feature_report(dev, buf, 264);
433-
}
434-
435-
void HyperXAlloyFPSController::SendDirectExtended
436-
(
437-
unsigned char* color_data
438-
)
439-
{
440-
unsigned char buf[264];
441-
442-
/*-----------------------------------------------------*\
443-
| Zero out buffer |
444-
\*-----------------------------------------------------*/
445-
memset(buf, 0x00, sizeof(buf));
446-
447-
/*-----------------------------------------------------*\
448-
| Set up Direct packet |
449-
\*-----------------------------------------------------*/
450-
buf[0x00] = 0x07;
451-
buf[0x01] = HYPERX_ALLOY_FPS_PACKET_ID_DIRECT;
452-
buf[0x02] = HYPERX_ALLOY_FPS_COLOR_CHANNEL_EXTENDED;
453-
buf[0x03] = 0xA0;
454-
455-
/*-----------------------------------------------------*\
456-
| Send packet |
457-
\*-----------------------------------------------------*/
458-
hid_send_feature_report(dev, buf, 264);
459-
}
406+
}

Controllers/HyperXKeyboardController/HyperXAlloyFPSController.h

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ enum
5858
{
5959
HYPERX_ALLOY_FPS_COLOR_CHANNEL_RED = 0x01,
6060
HYPERX_ALLOY_FPS_COLOR_CHANNEL_GREEN = 0x02,
61-
HYPERX_ALLOY_FPS_COLOR_CHANNEL_BLUE = 0x03,
62-
HYPERX_ALLOY_FPS_COLOR_CHANNEL_EXTENDED = 0x04
61+
HYPERX_ALLOY_FPS_COLOR_CHANNEL_BLUE = 0x03
6362
};
6463

6564
class HyperXAlloyFPSController
@@ -120,20 +119,9 @@ class HyperXAlloyFPSController
120119
unsigned char* color_data
121120
);
122121

123-
void SendExtendedColor
124-
(
125-
unsigned char profile,
126-
unsigned char* color_data
127-
);
128-
129122
void SendDirect
130123
(
131124
unsigned char color_channel,
132125
unsigned char* color_data
133126
);
134-
135-
void SendDirectExtended
136-
(
137-
unsigned char* color_data
138-
);
139127
};

0 commit comments

Comments
 (0)