CC:Gamepad

⭐ — (3 endorsements) 📥 744 downloads 📌 v1.0.2-neoforge-1.21.1 📅 5/28/2026
🟡 Updated this year

By tiktop101 · neoforge

⬇ Download Mod Source: Modrinth ↗ 📅 Updated: 6/16/2026 📅 Created: 5/28/2026
⚠️ Install Order · 2 steps
1🛠️ Forge — Minecraft Forge (mod loader) Download ↗
2🛠️ Fabric — Fabric Loader Download ↗

Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.

🔍 Analysis

  • 👍 0.4% endorsement rate
  • 🏆 #70 of 70 neoforge mods in this game by downloads

📋 About This Mod

CC: Gamepads adds a CC:Tweaked peripheral block which lets ComputerCraft computers read real gamepad/controller input from players.

The controller is read on the player client, sent to the server, and exposed to Lua through a bound Gamepad Peripheral. This works in singleplayer, LAN, and dedicated multiplayer servers. Requirements

Minecraft 1. 21. 1 NeoForge 21. 1.x CC:Tweaked 1. 117. 1

Place a Gamepad Peripheral block next to, or connected by modem to, a CC:Tweaked computer. Hold a Gamepad item. Sneak-right-click the Gamepad Peripheral with the Gamepad item to bind it. Keep the bound Gamepad item in your main hand or off hand. Plug in/connect with bluetooth your/a controller and run Lua code on the computer.

Up to 4 players can send input to the same Gamepad Peripheral at once. Each player gets a slot from 1 to 4. Lua Peripheral

Wrap the peripheral like any other CC:Tweaked peripheral:

local pad = peripheral.find("gamepad")

Functions getPlayers()

Returns a list of connected controller states.

Each entry includes:

slot: player slot, 1 to 4 player: player name playerId: player UUID controllerId: client controller id controllerName: controller name guid: controller GUID buttons: numbered button table buttonNames: named button table axes: numbered axis table axisNames: named axis table updatedAt: server timestamp

getState(slot)

Returns the full state table for one slot.

Throws an error if no controller is bound to that slot. isDown(slot, button)

Returns true if a numbered button is held.

A B X Y Left bumper Right bumper Back/select Start Guide/home Left stick Right stick D-pad up D-pad right D-pad down D-pad left

isButtonDown(slot, name)

Returns true if a named button is held.

a b x y leftBumper rightBumper back select start guide home leftStick rightStick dpadUp dpadRight dpadDown dpadLeft

getAxis(slot, axis)

Returns a numbered axis value.

Left X, -1 to 1 Left Y, -1 to 1 Right X, -1 to 1 Right Y, -1 to 1 Left trigger, 0 to 1 Right trigger, 0 to 1

getAxisValue(slot, name)

Returns a named axis value.

leftX leftY rightX rightY leftTrigger rightTrigger

getMaxPlayers()

Returns 4. getButtonCount()

Returns 15. getAxisCount()

Returns 6. Events

When controller state changes, attached computers receive:

cc_events, "gamepad", slot, playerName, controllerId

local event, kind, slot, player, controllerId = os.pullEvent("cc_events") if kind == "gamepad" then print(player .. " updated slot " .. slot) end

Example Lua Program

This prints basic state for slot 1 and exits when Start is pressed.

local pad = peripheral.find("gamepad") if not pad then error("No gamepad peripheral found") end

print("Waiting for gamepad input...")

while true do local event, kind, slot, player = os.pullEvent("cc_events") if kind == "gamepad" and slot == 1 then local lx = pad.getAxisValue(1, "leftX") local ly = pad.getAxisValue(1, "leftY") local a = pad.isButtonDown(1, "a") local b = pad.isButtonDown(1, "b")

term.clear() term.setCursorPos(1, 1) print("Player: " .. player) print(("Left stick: %. 2f %. 2f"):format(lx, ly)) print("A: " .. tostring(a)) print("B: " .. tostring(b)) print("Start exits")

if pad.isButtonDown(1, "start") then break end end end

Multiplayer Notes

Controller input is only accepted from the player who sent it. The player must be holding a Gamepad item bound to the target peripheral. Controller IDs and GUIDs are verified server-side. Packet sizes, string lengths, button counts, axis counts, and axis values are validated before the state is accepted. Player state is cleared when they disconnect or when their controller list changes.

🤖 AI-enhanced — based on mod data

📊 Mod Details

Game
Minecraft Mods
Author
tiktop101
Version
1.0.2-neoforge-1.21.1
Downloads
744
Endorsements
3
Category
neoforge
Created
5/28/2026
Updated
6/16/2026
Game Versions
1.21.1
Tags
technology, utility

🔧 How to Install Minecraft Mods Mods

Download from Modrinth. Use Prism Launcher or drop into your mods folder.

📖 Full step-by-step install guide for Minecraft Mods →

Visit the official mod page for specific installation instructions for this mod.

🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Mods commands, item IDs, and more.

❓ Frequently Asked Questions

Which Minecraft Mods versions does CC:Gamepad support?

The author lists 1.21.1. Other versions may work but are untested by the author.

What is the latest version of CC:Gamepad?

Version 1.0.2-neoforge-1.21.1, published 2026-06-16 with 744 downloads recorded at the source.

Keep browsing — more Minecraft Mods mods await

📋 All Minecraft Mods Mods 🏆 Top 25 📂 More neoforge 👤 More by tiktop101 🔎 Similar Mods 🌐 Best neoforge (All Games) 🔀 Check Compatibility ⚖️ Compare Mods 🆕 New Mods