constants.h

#ifndef _CONSTANTS_H_
#define _CONSTANTS_H_
/**
 * Copyright (c) 2024, SWGY, Inc. <ron@sw.gy>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or (at
 * your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 */
#define WIN_MARGIN 100
#define TXT_MARGIN 10

#define STR_RED		 0
#define STR_BLU		 1
#define STR_WORD_DESC	 2
#define STR_CORRECT	 3
#define STR_INCORRECT	 4
#define STR_DETAIL	 5
#define STR_PRACTICE	 6
#define STR_ACTUAL	 7
#define STR_THANKS	 8
#define STR_SPACE	 9
#define STR_LSHIFT	10
#define STR_RSHIFT	11
#define STR_DESC_2	12
#define STR_NUM		13
static const char *strs[STR_NUM] = {
	"RED",
	"BLUE",
	"WORD IS IN BLUE COLOR",
	"CORRECT ANSWER",
	"INCORRECT ANSWER",
	//"Select the response option with the word meaning that matches the display color of the target",
	"Focus on the center word's color. Choose the word for that color's name,",
	"Practice for 30 seconds",
	"Now do your best for 90 seconds",
	"Thank you for your time and attention!",
	"Press SPACEBAR to continue",
	"Choose with Left Shift",
	"Choose with Right Shift",
	"regardless of *its* color."
};

/* Define our limited palette of colors */
#define PAL_BLK  0
#define PAL_BLU  1
#define PAL_GRN  2
#define PAL_RED  3
#define PAL_WHT  4
#define PAL_YLW  5
#define PAL_NUM  6

/* Define our limited number of text sizes */
#define TXT_SZ_SM	0
#define TXT_SZ_MD	1
#define TXT_SZ_LG	2
#define TXT_SZ_NUM	3


/* bit 4, Blue response option on left y/n
 * bit 3, Red stimulus color y/n
 * bit 2, stimulus incongruent y/n
 * bit 1, response incongruent y/n
 */
#define TT_RSC_RC_1 4
#define TT_BSC_RC_1 0
#define TT_RSI_RC_1 (4+2)
#define TT_BSI_RC_1 2
#define TT_RSC_RI_1 (4+1)
#define TT_BSC_RI_1 1
#define TT_RSI_RI_1 (4+2+1)
#define TT_BSI_RI_1 (2+1)
#define TT_RSC_RC_2 8+4
#define TT_BSC_RC_2 8+0
#define TT_RSI_RC_2 8+(4+2)
#define TT_BSI_RC_2 8+2
#define TT_RSC_RI_2 8+(4+1)
#define TT_BSC_RI_2 8+1
#define TT_RSI_RI_2 8+(4+2+1)
#define TT_BSI_RI_2 8+(2+1)
#endif