aboutsummaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
authorspl3g <spleefer6@yandex.ru>2025-11-06 16:15:51 +0300
committerspl3g <spleefer6@yandex.ru>2025-11-06 16:15:51 +0300
commit5d74f4437de84f784e0d972be03da03505154eb7 (patch)
treea57023526220e3e2dd9a2c06d6e69e80dd955151 /src/ui.c
parente2b6ea033d57f8666d1f23bbfee2a6c886220e34 (diff)
Make all types UpperCamelCase
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui.c b/src/ui.c
index f7a0ea7..1ab15ab 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -76,7 +76,7 @@ void handle_knob_press(Clay_ElementId element_id, Clay_PointerData pointer_info,
float value = denormalize_value(normalized_value, start, end);
knob->info->value = value;
- mqueue_push(ui_data->msg_queue, (synth_message){
+ mqueue_push(ui_data->msg_queue, (SynthMessage){
.type = MSG_PARAM_CHANGE,
.param_change = {
.param_type = knob->info->param_type,
@@ -94,7 +94,7 @@ void handle_key_press(Clay_ElementId element_id, Clay_PointerData pointer_info,
if (!pressed && (pointer_info.state == CLAY_POINTER_DATA_PRESSED_THIS_FRAME
|| pointer_info.state == CLAY_POINTER_DATA_PRESSED)) {
- mqueue_push(ui_data->msg_queue, (synth_message){
+ mqueue_push(ui_data->msg_queue, (SynthMessage){
.type = MSG_NOTE_ON,
.note = {
.note_id = idx,
@@ -106,7 +106,7 @@ void handle_key_press(Clay_ElementId element_id, Clay_PointerData pointer_info,
if (pressed && (pointer_info.state == CLAY_POINTER_DATA_RELEASED_THIS_FRAME
|| pointer_info.state == CLAY_POINTER_DATA_RELEASED)) {
if (!ui_data->keys[idx].keyboard_pressed) {
- mqueue_push(ui_data->msg_queue, (synth_message){
+ mqueue_push(ui_data->msg_queue, (SynthMessage){
.type = MSG_NOTE_OFF,
.note = {
.note_id = idx,
@@ -124,7 +124,7 @@ void draw_white_key(size_t idx, UIData *ui_data) {
bool hovered = Clay_Hovered();
if (!hovered && mouse_pressed && !keyboard_pressed) {
- mqueue_push(ui_data->msg_queue, (synth_message){
+ mqueue_push(ui_data->msg_queue, (SynthMessage){
.type = MSG_NOTE_OFF,
.note = {
.note_id = idx,
@@ -180,7 +180,7 @@ void draw_black_key(size_t idx, UIData *ui_data) {
bool hovered = Clay_Hovered();
if (!hovered && mouse_pressed && !keyboard_pressed) {
- mqueue_push(ui_data->msg_queue, (synth_message){
+ mqueue_push(ui_data->msg_queue, (SynthMessage){
.type = MSG_NOTE_OFF,
.note = {
.note_id = idx,