All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.io.nacular.doodle.system.KeyInputService.kt Maven / Gradle / Ivy

There is a newer version: 0.10.4
Show newest version
package io.nacular.doodle.system

import io.nacular.doodle.event.KeyState


public interface KeyInputService {

    public operator fun plusAssign (listener: Listener)
    public operator fun minusAssign(listener: Listener)

    public operator fun plusAssign (processor: Preprocessor)
    public operator fun minusAssign(processor: Preprocessor)

    public operator fun plusAssign (processor: Postprocessor)
    public operator fun minusAssign(processor: Postprocessor)

    public interface Listener {
        public operator fun invoke(keyState: KeyState): Boolean
    }

    public interface Preprocessor {
        public operator fun invoke(keyState: KeyState): Boolean
    }

    public interface Postprocessor {
        public operator fun invoke(keyState: KeyState): Boolean
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy