mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-10-31 05:12:33 +01:00 
			
		
		
		
	Rename postprocess_steno_user → post_process_steno_user (#17823)
This commit is contained in:
		
							parent
							
								
									2d0443ec25
								
							
						
					
					
						commit
						95c1cc425e
					
				| @ -133,7 +133,7 @@ bool process_steno_user(uint16_t keycode, keyrecord_t *record) { return true; } | |||||||
| This function is called when a keypress has come in, before it is processed. The keycode should be one of `QK_STENO_BOLT`, `QK_STENO_GEMINI`, or one of the `STN_*` key values. | This function is called when a keypress has come in, before it is processed. The keycode should be one of `QK_STENO_BOLT`, `QK_STENO_GEMINI`, or one of the `STN_*` key values. | ||||||
| 
 | 
 | ||||||
| ```c | ```c | ||||||
| bool postprocess_steno_user(uint16_t keycode, keyrecord_t *record, steno_mode_t mode, uint8_t chord[MAX_STROKE_SIZE], int8_t n_pressed_keys); | bool post_process_steno_user(uint16_t keycode, keyrecord_t *record, steno_mode_t mode, uint8_t chord[MAX_STROKE_SIZE], int8_t n_pressed_keys); | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| This function is called after a key has been processed, but before any decision about whether or not to send a chord. This is where to put hooks for things like, say, live displays of steno chords or keys. | This function is called after a key has been processed, but before any decision about whether or not to send a chord. This is where to put hooks for things like, say, live displays of steno chords or keys. | ||||||
|  | |||||||
| @ -77,7 +77,7 @@ bool process_steno_user(uint16_t keycode, keyrecord_t *record) { return true; } | |||||||
| この関数はキーが押されるとキーが処理される前に呼び出されます。キーコードは `QK_STENO_BOLT`、`QK_STENO_GEMINI` あるいは `STN_*` キー値のいずれかでなければなりません。 | この関数はキーが押されるとキーが処理される前に呼び出されます。キーコードは `QK_STENO_BOLT`、`QK_STENO_GEMINI` あるいは `STN_*` キー値のいずれかでなければなりません。 | ||||||
| 
 | 
 | ||||||
| ```c | ```c | ||||||
| bool postprocess_steno_user(uint16_t keycode, keyrecord_t *record, steno_mode_t mode, uint8_t chord[6], int8_t pressed); | bool post_process_steno_user(uint16_t keycode, keyrecord_t *record, steno_mode_t mode, uint8_t chord[6], int8_t pressed); | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| この関数はキーが処理された後、ただしコードを送信するかどうかを決める前に呼び出されます。`IS_PRESSED(record->event)` が false で、`pressed` が 0 または 1 の場合は、コードはまもなく送信されますが、まだ送信されてはいません。ここが速記コードあるいはキーのライブ表示などのフックを配置する場所です。 | この関数はキーが処理された後、ただしコードを送信するかどうかを決める前に呼び出されます。`IS_PRESSED(record->event)` が false で、`pressed` が 0 または 1 の場合は、コードはまもなく送信されますが、まだ送信されてはいません。ここが速記コードあるいはキーのライブ表示などのフックを配置する場所です。 | ||||||
|  | |||||||
| @ -148,7 +148,7 @@ __attribute__((weak)) bool send_steno_chord_user(steno_mode_t mode, uint8_t chor | |||||||
|     return true; |     return true; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| __attribute__((weak)) bool postprocess_steno_user(uint16_t keycode, keyrecord_t *record, steno_mode_t mode, uint8_t chord[MAX_STROKE_SIZE], int8_t n_pressed_keys) { | __attribute__((weak)) bool post_process_steno_user(uint16_t keycode, keyrecord_t *record, steno_mode_t mode, uint8_t chord[MAX_STROKE_SIZE], int8_t n_pressed_keys) { | ||||||
|     return true; |     return true; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| @ -209,12 +209,12 @@ bool process_steno(uint16_t keycode, keyrecord_t *record) { | |||||||
|                     default: |                     default: | ||||||
|                         return false; |                         return false; | ||||||
|                 } |                 } | ||||||
|                 if (!postprocess_steno_user(keycode, record, mode, chord, n_pressed_keys)) { |                 if (!post_process_steno_user(keycode, record, mode, chord, n_pressed_keys)) { | ||||||
|                     return false; |                     return false; | ||||||
|                 } |                 } | ||||||
|             } else { // is released
 |             } else { // is released
 | ||||||
|                 n_pressed_keys--; |                 n_pressed_keys--; | ||||||
|                 if (!postprocess_steno_user(keycode, record, mode, chord, n_pressed_keys)) { |                 if (!post_process_steno_user(keycode, record, mode, chord, n_pressed_keys)) { | ||||||
|                     return false; |                     return false; | ||||||
|                 } |                 } | ||||||
|                 if (n_pressed_keys > 0) { |                 if (n_pressed_keys > 0) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 precondition
						precondition