Šis repozitorijs ir arhivēts. Ir iespējams aplūkot tā failus un to konēt, bet nav iespējams iesūtīt izmaiņas, kā arī izveidot jaunas problēmas vai izmaiņu pieprasījumus.
2016-05-09 14:05:08 +00:00
# ifndef CODE_LAYERLOCK_H
# define CODE_LAYERLOCK_H
# include <inttypes.h>
2016-11-18 10:21:50 +00:00
# include "Code.h"
2016-05-28 21:16:32 +00:00
# include "LayerState.h"
2016-05-09 14:05:08 +00:00
2016-05-28 21:16:32 +00:00
/* Code_LayerLock calls LayerState when pressed to change activeLayer.
2016-05-09 14:05:08 +00:00
*/
class Code_LayerLock : public Code
{
private :
2016-09-20 01:46:03 +00:00
const uint8_t layerId ;
2016-05-28 21:16:32 +00:00
LayerState & refLayerState ;
2016-05-09 14:05:08 +00:00
public :
2016-09-20 01:46:03 +00:00
Code_LayerLock ( const uint8_t layerId , LayerState & refLayerState )
: layerId ( layerId ) , refLayerState ( refLayerState ) { }
2016-05-09 14:05:08 +00:00
virtual void press ( ) ;
virtual void release ( ) ;
} ;
# endif