|
|
@ -99,14 +99,14 @@ void dynamic_macro_play(
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param macro_buffer[in] The start of the used macro buffer.
|
|
|
|
* @param macro_buffer[in] The start of the used macro buffer.
|
|
|
|
* @param macro_pointer[in,out] The current buffer position.
|
|
|
|
* @param macro_pointer[in,out] The current buffer position.
|
|
|
|
* @param macro_end2[in] The end of the other macro which shouldn't be overwritten.
|
|
|
|
* @param macro2_end[in] The last buffer element it is safe to use before overwriting the other macro.
|
|
|
|
* @param direction[in] Either +1 or -1, which way to iterate the buffer.
|
|
|
|
* @param direction[in] Either +1 or -1, which way to iterate the buffer.
|
|
|
|
* @param record[in] The current keypress.
|
|
|
|
* @param record[in] The current keypress.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void dynamic_macro_record_key(
|
|
|
|
void dynamic_macro_record_key(
|
|
|
|
keyrecord_t *macro_buffer,
|
|
|
|
keyrecord_t *macro_buffer,
|
|
|
|
keyrecord_t **macro_pointer,
|
|
|
|
keyrecord_t **macro_pointer,
|
|
|
|
keyrecord_t *macro_end2,
|
|
|
|
keyrecord_t *macro2_end,
|
|
|
|
int8_t direction,
|
|
|
|
int8_t direction,
|
|
|
|
keyrecord_t *record)
|
|
|
|
keyrecord_t *record)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -115,7 +115,7 @@ void dynamic_macro_record_key(
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (*macro_pointer + direction != macro_end2) {
|
|
|
|
if (*macro_pointer - direction != macro2_end) {
|
|
|
|
**macro_pointer = *record;
|
|
|
|
**macro_pointer = *record;
|
|
|
|
*macro_pointer += direction;
|
|
|
|
*macro_pointer += direction;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|