---
name: "input_set_keycode"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/input_set_keycode"
---

# input\_set\_keycode(9)

attribute a keycode to a given scancode

## NAME

input\_set\_keycode - attribute a keycode to a given scancode

## SYNOPSIS

**int input\_set\_keycode(struct input\_dev \*** *dev***, const struct input\_keymap\_entry \*** *ke***);**

## ARGUMENTS

*dev*

input device which keymap is being updated

*ke*

new keymap entry

## DESCRIPTION

This function should be called by anyone needing to update current keymap. Presently keyboard and evdev handlers use it.

## COPYRIGHT
