can i make a drop down list using arduino ide for an adafruit trinket project?

i have completed a project using the arduino ide 1.8.9 and a trinket 5v. (i got the code below from the internet)

the project works fine without any errors.

i plan to add a feature which obtains user input by displaying a drop down list. the user selects one item from the drop down list, and the trinket should be able to remember the selected item while plugged in (i know it's another programming concern)

i have these questions:

  1. any ideas on how to go about this?

  2. how would adding that feature affect the existing code? (do i have to use another language? etc..)

  3. btw, is the code below written in c or c++?

  4. can the dropdown list be written in the same code language as in the below code?

thanks in advance.

/*
TrinketGamepad example
This example demonstrates all of the key

Based off of Adafruit's TrinketKeyboard libraries and examples.

For Adafruit Industries's Trinket
*/

#include <TrinketGamepad.h>

#define PIN_BUTTON_XAXIS      0
#define PIN_BUTTON_BUTTON4    2

void setup()
{
  // button pins as inputs
  pinMode(PIN_BUTTON_XAXIS, INPUT);
  pinMode(PIN_BUTTON_BUTTON4, INPUT);

  // setting input pins to high means turning on internal pull-up resistors
  digitalWrite(PIN_BUTTON_XAXIS, HIGH);
  digitalWrite(PIN_BUTTON_BUTTON4, HIGH);
  // remember, the buttons are active-low, they read LOW when they are not pressed

  // start USB stuff
  TrinketGamepad.begin();
}

void loop()
{
  TrinketGamepad.poll();
  // either the poll or transmit function must be called at least once every 10 ms
  // if it is not, then the computer may think that the device
  // has stopped working, and give errors
  
  // Note: since transmit is called every cycle, poll is probably not needed, but if
  //   transmits are only called on value changes, then poll might be useful.

  //  Example of analog stick control.  Full list of defines for axes can be found in TrinketGamepad.h.
  //  Each axis supports values from -127 to +127
  if (digitalRead(PIN_BUTTON_XAXIS) == LOW)
  {
    TrinketGamepad.setAxis(GAMEPAD_AXIS_X, 127);
  }
  else
  {
    TrinketGamepad.setAxis(GAMEPAD_AXIS_X, 0);
  }

  /*  Example of DPAD control.  Full list of defines for direction can be found in TrinketGamepad.h
  if (digitalRead(PIN_BUTTON_DPADDOWNLEFT) == LOW)
  {
    TrinketGamepad.setDPad(GAMEPAD_DPAD_DOWNLEFT);
  }
  else
  {
    TrinketGamepad.setDPad(GAMEPAD_DPAD_CENTER);
  }
  */
  
  //  Example of button control. The default library allows for up to 12 input buttons.
  //  Makes sure that if multiple button changes are desired, a call is made separately for each button press or release.
  //    I.e. do NOT use buttonPress(GAMEPAD_BUTTON_04 | GAMEPAD_BUTTON_05) for changing both at once. Changes are not
  //    reflected until TrinketGamepad.transmit() is called, so it does not matter.
  if (digitalRead(PIN_BUTTON_BUTTON4) == LOW)
  {
    TrinketGamepad.buttonPress(GAMEPAD_BUTTON_04);
  }
  else
  {
    TrinketGamepad.buttonRelease(GAMEPAD_BUTTON_04);
  }
  TrinketGamepad.transmit();  // This function sends the gamepad status configuration to the PC
    // Until this function is called, changes will not be seen by the PC.
}

How do you view the list? I see no display in your code.