# Action to iterate flags with gamepad

**URL:** <https://forums.ankiweb.net/t/action-to-iterate-flags-with-gamepad/52521>\
**Category:** Suggestions\
**Created:** [November 29, 2024, 1:02pm UTC](https://forums.ankiweb.net/t/action-to-iterate-flags-with-gamepad/52521 "2024-11-29T13:02:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmantula](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dmantula/32/25167_2.png) [@dmantula](https://forums.ankiweb.net/u/dmantula)\
**Post date:** [November 29, 2024, 1:02pm UTC](https://forums.ankiweb.net/t/action-to-iterate-flags-with-gamepad/52521/1 "2024-11-29T13:02:51Z")

</div>

I’d like to propose a new action to improve the workflow for users who rely on **gamepads** and **flags** during their reviews.

Currently, we can assign specific actions, such as applying a flag of a particular color, to individual gamepad buttons. However, the number of buttons on most gamepads is limited, while Anki supports 7 different flag colors.

_Proposed Feature:_  
Add a new action that allows **iterating through all flag colors** with consecutive button presses.

_Functionality:_  
Pressing the assigned gamepad button once would apply the first flag (red).  
Pressing the same button again would change the flag to the next color in sequence (orange, yellow, …).  
After the final flag (purple), the next button press would remove the flag, completing the cycle.

This feature would allow users to efficiently cycle through flags without needing separate buttons for each color. The idea is taken from the Contanki plugin for desktops.

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [November 29, 2024, 1:37pm UTC](https://forums.ankiweb.net/t/action-to-iterate-flags-with-gamepad/52521/2 "2024-11-29T13:37:10Z")

</div>

I’ve added this to the todo list.
