Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 19, 2009, 12:27:53 PM (15 years ago)
Author:
rgrieder
Message:

Optimisations in the pathway of the input. Nobody will ever notice the difference in performance (immeasurable), but I love the beauty of having all my template code inlined when it even decreases code size (because the code gets inlined exactly once).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core4/src/core/input/InputDevice.h

    r3286 r3310  
    181181    protected:
    182182        //! Common code for all button pressed events (updates pressed buttons list and calls the input states)
    183         void buttonPressed(ButtonTypeParam button)
     183        FORCEINLINE void buttonPressed(ButtonTypeParam button)
    184184        {
    185185            // check whether the button already is in the list (can happen when focus was lost)
     
    198198
    199199        //! Common code for all button released events (updates pressed buttons list and calls the input states)
    200         void buttonReleased(ButtonTypeParam button)
     200        FORCEINLINE void buttonReleased(ButtonTypeParam button)
    201201        {
    202202            // remove the button from the pressedButtons_ list
Note: See TracChangeset for help on using the changeset viewer.